Call a function: Difference between revisions

Content added Content deleted
m (add ooRexx)
m (move oorexx)
Line 4,065: Line 4,065:
; The values in Ol always passed as values and objects always passed as references. If you want to pass an object copy - make a copy by yourself.
; The values in Ol always passed as values and objects always passed as references. If you want to pass an object copy - make a copy by yourself.
</lang>
</lang>

=={{header|ooRexx}}==
This is to show how a built-in function is invoked when an internal function on the dame name in present.
<lang oorexx>say 'DATE'()
Say date()
Exit
daTe: Return 'my date' </lang>
{{out}}
<pre>H:\>rexx fdate
31 Mar 2022
my date</pre>


=={{header|PARI/GP}}==
=={{header|PARI/GP}}==
Line 4,101: Line 4,112:
* stating ''at the call site'' whether arguments are passed by value or by reference
* stating ''at the call site'' whether arguments are passed by value or by reference
* partial application
* partial application

=={{header|ooRexx}}==
This is to show how a built-in function is invoked when an internal function on the dame name in present.
<lang oorexx>say 'DATE'()
Say date()
Exit
daTe: Return 'my date' </lang>
{{out}}
<pre>H:\>rexx fdate
31 Mar 2022
my date</pre>


=={{header|Perl}}==
=={{header|Perl}}==