Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions support in FastBasic #109

Open
peterkaczorowski opened this issue Feb 2, 2025 · 2 comments
Open

functions support in FastBasic #109

peterkaczorowski opened this issue Feb 2, 2025 · 2 comments

Comments

@peterkaczorowski
Copy link

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

@pagesix1536
Copy link

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

@peterkaczorowski
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants