Quine: Difference between revisions

40 bytes removed ,  6 years ago
m
→‎{{header|REXX}}: used a simpler program for the 1st version, included a blank line for the 2nd version, use templates for the outputs.
m (→‎{{header|REXX}}: used a simpler program for the 1st version, included a blank line for the 2nd version, use templates for the outputs.)
Line 2,107:
 
===version 1===
<lang rexx>/*REXX program outputs itselfits own 1─line source.*/ do j=1 for sourceline(); say sourceline(j1); end</lang>
{{out|output}}
<pre>
/*REXX program outputs itselfits own 1─line source.*/ do j=1 for sourceline(); say sourceline(j1); end
</pre>
 
===version 2===
<lang rexx>/*REXX program outputs its own multi─line source including comments and blank lines.*/
 
do k=1 for sourceline()
do j=1 say for sourceline(k)
do k=1 forsay sourceline(j)
end /*kj*/</lang>
{{out|output}}
<pre>
/*REXX program outputs its own multi─line source including comments and blank lines.*/
 
do k=1 for sourceline()
do j=1 say for sourceline(k)
say end /*k*/sourceline(j)
end /*j*/
</pre>
 
===version 3===
A version that doesn't use <code>sourceline()</code> which is kind of a cheat.
<br>---But it '&nbsp; 'is'' &nbsp; allowed (see the 2<sup>nd</sup> bullet point in the task's preamble).
 
<br><br><s>'''Error?'''</s>