Call a function: Difference between revisions

no edit summary
(more lua)
No edit summary
Line 172:
/* Pointers *sort of* work like references, though. */</lang>
 
=={{header|Erlang}}==
<pre>
no_argument()
one_argument( Arg )
optional_arguments( Arg, [{opt1, Opt1}, {another_opt, Another}] )
variable_arguments( [Arg1, Arg2 | Rest] )
names_arguments([{name1, Arg1}, {another_name, Another}] )
% Statement context?
% First class context?
Result = obtain_result( Arg1 )
% No way to distinguish builtin/user functions
% Subroutines?
Arguments are passed by reference, but you can not change them.
Partial application is possible (a function returns a function that has one argument bound)
</pre>
=={{header|Icon}} and {{header|Unicon}}==
Icon and Unicon have generalized procedures and syntax that are used to implement functions, subroutines and generators.
Anonymous user