Category:S-BASIC: Difference between revisions

m
no edit summary
m (Tigerofdarkness moved page Category:S BASIC to Category:S-BASIC: Correct language name so it matches most of the samples)
mNo edit summary
 
Line 10:
implementation that preserved BASIC's ease of use and
straight-forward syntax, while incorporating the syntactic and
control-flow features associated with modern programming languages.,
including local variables, recursion, statement grouping with
BEGIN and END, looping with WHILE and REPEAT statements,
multi-way decisions with a CASE statement, and named functions
and procedures. S-BASIC also incorporates a number of
miscellaneous useful features: COMMENT and TEXT statements that
eliminate the need for multiple REM or PRINT statements, a FIXED
(binary coded decimal) variable type for financial calculations,
BASED variables that may be positioned at run-time, and a
powerful $INCLUDE command that allows functions and procedures to
be gathered into library files and selectively extracted at
compile time. Line numbers were not required unless the line was the target of a GOTO or GOSUB statement and were in any event treated simply as labels. All parameters to functions and procedures were passed by value; arrays, unfortunately, could not be passed as parameters.
211

edits