Quine: Difference between revisions

Content added Content deleted
(→‎{{header|RPL}}: Without self-reference)
Line 3,790: 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.
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}}
{{works with|Halcyon Calc|4.2.7}}
≪ 'QUINE' RCL ≫
≪ '<span style="color:blue">QUINE</span>' RCL ≫
'QUINE' STO
'<span style="color:blue">QUINE</span>' STO

<span style="color:blue">QUINE</span>
QUINE
{{out}}
{{out}}
<pre>
<pre>
1: ≪ 'QUINE' RCL ≫
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>
</pre>