Insert <it’s not much but it’s honest work> meme. It only supports ints and bools, some logic and simple arithmetics and it compiles to Java but damn was it hard to get that far.

Can you guess what everything does?

  • SuperDuper@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    9 months ago

    Looks like you’ve got a bug in there.

    if false no cap
        canYouSeeMe = false
    if cap
        canYouSeeMe = true
    sheesh
    

    Won’t this always go into the else/cap condition since the if condition is checking to see that false == true?

    • prof@infosec.pubOP
      link
      fedilink
      arrow-up
      6
      ·
      9 months ago

      You’re correct, but it doesn’t really matter for demo purposes. In an actual use case (whatever that would be for this language) you would of course want to use some kind of variable or expression there instead of a constant.