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 |
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"> |
<syntaxhighlight lang="easylang"> |
||
call |
call somesubr # call a subroutine |
||
call |
call someproc1 # call a procedure with no parameters |
||
call |
call someproc2 arg1 arg2 res # call a procedure with arguments, the last one is an inout argument |
||
</syntaxhighlight> |
|||
=={{header|Ecstasy}}== |
=={{header|Ecstasy}}== |