FastBasic — Release 4.8
Unpublished candidate gathered automatically. Review, verify, and rewrite this draft before publishing.
Source: FastBasic releases
Feed excerpt: FastBasic has functions! This is a long overdue release. The main language addition is user-defined integer functions, complemented by floating-point DATA arrays and a large compiler/optimizer cleanup. Language changes: Adds user-defined integer functions. A PROC can return a value with RETURN expression , and the function is called from any integer expression with @name(...) : PROC Square X RETURN X*X ENDPROC ? @Square(5) Calls support nested and recursive functions. RETURN can also be used without a value, as an early exit from a PROC. Active FOR loops are unwound before returning. Adds floating-point DATA arrays. Use a name ending in % : DATA values%() = 1.0, 2.5, 3.75 The elements can be read and written like other arrays. %() can now be used on the left side of an assignment, allowing floating-point values to be stored through an address: %(1536) = 0.1234 INPUT now works correctly with BYTE and floating-point DATA arrays. ENDPROC can now be abbreviated as EN. . If an IF is open, EN. closes the IF first, as before. IDE and Atari compiler changes: The native parser now reports an error for source lines longer than 255 characters instead of looping. More parser and code-size opti
