Quine: Difference between revisions
→{{header|RPL}}: Without self-reference
(→{{header|RPL}}: Without self-reference) |
|||
Line 3,790:
RPL programs are stored in RAM as a specific data structure, and can then be recalled the same way as an ordinary variable.
{{works with|Halcyon Calc|4.2.7}}
≪ '<span style="color:blue">QUINE</span>' RCL ≫
'<span style="color:blue">QUINE</span>' STO
<span style="color:blue">QUINE</span>
{{out}}
<pre>
1: ≪ '<span style="color:blue">QUINE</span>' RCL ≫
</pre>
'''Without self-reference'''
The call is less idiomatic but still valid.
≪ LASTARG RCL ≫
'<span style="color:blue">QUINE</span>' STO
'<span style="color:blue">QUINE</span>' EVAL
{{out}}
<pre>
1: ≪ LASTARG RCL ≫
</pre>
|