Quine: Difference between revisions

m (added a ;Task: (bold) header, added other whitespace to the task's preamble.)
Line 1,485:
 
=={{header|ooRexx}}==
 
The samples shown at [[#REXX|REXX]] are valid [[ooRexx]] programs.
===Cheating===
<lang ooRexx>say sourceline(1)</lang>
 
===Non-Cheating, with INTERPRET===
<lang ooRexx>r="say'r='x2c(22)r||22~x2c';interpret r'";interpret r</lang>
 
===Non-Cheating, without INTERPRET===
<lang ooRexx>r=";say'r=.'r'.'r~changestr(.,'22'x,2)";say'r="'r'"'r~changestr(.,'22'x,2)</lang>
 
===Non-Cheating, without INTERPRET, with unprintable characters===
The two unprintable characters are '07'x. Somewhat difficult to enter, but still a perfectly valid ooRexx program (and Quine).
<lang ooRexx>r=";say'r=�'r'�'r~bitor(,' ')";say'r="'r'"'r~bitor(,' ')</lang>
 
=={{header|OxygenBasic}}==
Anonymous user