Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
MAD (programming language)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Functions === Function names end with a period. Internal and external functions are supported. Internal functions are compiled as part of the program in which they are used and share declarations and variables with the main program. External functions are compiled separately and do not share declarations and variables. A one statement definition of internal functions is permitted. Recursive functions are permitted, although the function must do some of the required saving and restoring work itself. {{col-begin}} {{col-2}} * INTERNAL FUNCTION ''function-name''.(''argument-list'') = ''expression'' (single statement definition) * INTERNAL FUNCTION ''function-name''.(''argument-list'') * EXTERNAL FUNCTION ''function-name''.(''argument-list'') * ENTRY TO NAME ''name''. * END OF FUNCTION (last statement in a multiple line definition) * FUNCTION RETURN [ ''expression'' ] {{col-2}} * ERROR RETURN (force an error return to a statement or to the operating system, if no error statement is given as last argument of the call) * SAVE RETURN * RESTORE DATA * RESTORE RETURN * EXECUTE ''procedure''.(''argument-list'') (call a non-single valued function) {{col-end}} {{Hidden end}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)