Call a function: Difference between revisions
m
move oorexx
Walterpachl (talk | contribs) m (add ooRexx) |
Walterpachl (talk | contribs) m (move oorexx) |
||
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.
</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}}==
Line 4,101 ⟶ 4,112:
* stating ''at the call site'' whether arguments are passed by value or by reference
* 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}}==
|