fastbasic icon indicating copy to clipboard operation
fastbasic copied to clipboard

functions support in FastBasic

Open peterkaczorowski opened this issue 1 year ago • 2 comments

Adding functions to FastBasic will make the language more structured and mature, as well as create greater clarity in the written code.

peterkaczorowski avatar Feb 02 '25 09:02 peterkaczorowski

It already has function support. They're called proceedures and defined with the PROC statement.

pagesix1536 avatar Feb 27 '25 01:02 pagesix1536

It already has function support. They're called proceedures and defined with the PROC statement.

Functions in the explicit sense. BASIC originates from ALGOL, where there are two types of subprograms: procedures and functions. Procedures do not return a result, while functions return a result. It is necessary to add functions that return a result and procedures that accept parameters - more than one, not just integer types, which will be local variables.

peterkaczorowski avatar Feb 27 '25 07:02 peterkaczorowski