Call a function: Difference between revisions

Content added Content deleted
Line 1,809: Line 1,809:


=={{header|EasyLang}}==
=={{header|EasyLang}}==
EasyLang distinguishes between subroutines and functions.
EasyLang distinguishes between subroutines and procedures. 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
<syntaxhighlight lang="easylang">
call function1 result # call a function with no arguments, with return value
call somesubr # call a subroutine
call function2 arg1 arg2 # call a function with arguments, no return value
call someproc1 # call a procedure with no parameters
call function3 arg1 arg2 result # call a function with arguments and return value</syntaxhighlight>
call someproc2 arg1 arg2 res # call a procedure with arguments, the last one is an inout argument
</syntaxhighlight>


=={{header|Ecstasy}}==
=={{header|Ecstasy}}==