Call a function: Difference between revisions

m
Line 1,809:
 
=={{header|EasyLang}}==
EasyLang distinguishes between subroutines and functionsprocedures. Procedures can have parameters and have local variables. Subroutines do not. The call syntax is the same.
<syntaxhighlight lang="easylang">call subroutine # call a subroutine
call function1somesubr result # call a function with no arguments,# withcall returna valuesubroutine
call function2someproc1 arg1 arg2 # call a functionprocedure with arguments, no return valueparameters
call function3someproc2 arg1 arg2 resultres # call a functionprocedure with arguments, the last one is andan returninout value</syntaxhighlight>argument
</syntaxhighlight>
 
=={{header|Ecstasy}}==
1,995

edits