Menu

++ Convention for incrementing a variable

Tam Do
2007-05-27
2013-05-30
  • Tam Do

    Tam Do - 2007-05-27

    Is it possible to add the ++ or -- convention for incrementing and decrementing variables? Or does one already exist that I'm not aware of. I'm sure implementing it wouldn't be that hard but i'm having trouble deciphering the source code. Thanks!!

     
    • Hugh Considine

      Hugh Considine - 2007-05-27

      Done! (http://gcbasic.sourceforge.net/newfiles/update.zip)

      Note that unlike C, this syntax will NOT work as expected:
      SomeArray(SomeElement ++) = SomeValue

      This would have to be written as:
      SomeArray(SomeElement) = SomeValue
      SomeElement ++

       
    • Tam Do

      Tam Do - 2007-05-27

      Thanks that was fast!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.