functions support in FastBasic
Adding functions to FastBasic will make the language more structured and mature, as well as create greater clarity in the written code.
It already has function support. They're called proceedures and defined with the PROC statement.
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.