Menu

What functionality is supported in direct/interactive/immediate mode?

2020-10-28
2021-02-18
  • Yet Another Troll

    Is XBasic 1.27-59 limited to four banger or adding machine (with ANS and other variables) functionality unless ? or PRINT is used? Also, spaces seem to be unexpectedly significant.

    Thanks for your help!

     
  • Markus Hoffmann

    Markus Hoffmann - 2021-02-18

    Spaces are significant. If you want X11-Basic to calculate something, without assigning it to a variable or printing, the line has to start with a digit (0-9) otherwise the first word is interpreted as a command. so, do a 1*sqrt(2) instead.
    Yes, the variable ANS will hold the result of the latest of such calculations.

     

Anonymous
Anonymous

Add attachments
Cancel