Jump to content

Quine: Difference between revisions

358 bytes added ,  27 days ago
→‎{{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>
QUINE
{{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>
 
1,150

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.