
All of the previous versions of SiMPLE have had a minor bug in their implementation of comments. (If a comment contained either a colon, semi-colon, or a backslash, the statement immediately following the comment would usually be ignored.) This problem has now been fixed.
In addition to the older form of comment, a new "multi-line comment" is now available. A multi-line comment begins with a slash-asterisk ( /* ) and ends with an asterisk-slash (*/ ). This form allows you to spread a comment over as many lines as you like. For example:
Set x = 3
Set y = x + 2
/* This comment
extends over
three lines. */
Call output (y)
The "raise to the power of" operator ( ^ ) is now available. For example:
Set radius = (x^2 + y^2)^0.5
One-line "If" and "Else" statements now allow multiple statements to be on the same line. For example:
If (x<0 Or y<0) x = 0; y = 0
Else x = x - 1; y = y - 1
is now equivalent to:
If (x<0 Or y<0)
x = 0
y = 0
Endif
Else
x = x - 1
y = y - 1
Endelse
Cls (color) -- Turns on graphics mode, and then clears
the screen to the specified color.
Playsound (file) -- Starts playing the specified sound file (.WAV,
.MID, etc.) through the PC's sound card.
Fctrl (n) -- Returns n factorial.
The older versions of SiMPLE would terminate on startup if the WORDPAD.EXE file could not be found. This no longer happens.
Provides the user with a quick-look at a source listing by simply displaying it right on the command-line screen.
For the benefit of C++ programmers, any ".CPP" file not associated with a corresponding SiMPLE program (i.e., a ".TXT" file) now has its name displayed in dark gray along with the colored names of the regular SiMPLE programs. (If its corresponding ".OBJ" file also exists, the name is displayed in light gray. If its corresponding ".EXE" file exists, the name is displayed in white.)
For C++ programmers, a "space eradicating" bug was fixed. Statements requiring space characters (such as: +int a=0;) now compile correctly with all space characters preserved.