[REBOL] Re: One-line Quine anyone?
From: nitsch-lists:netcologne at: 24-Nov-2002 12:41
[SunandaDH--aol--com] wrote:
>Hey Gabriele.....Re: [REBOL] How dynamic can we be?
>
>That's super-cool!!
>
>And it's not far off being a quine -- a program that outputs a copy of
>itself.
>
>Rebol is currently lacking a quine on the main quine collection site:
>
>http://www.nyx.net/~gthompso/quine.htm
>
>There is a quine in the Rebol script library:
>
>http://www.reboltech.com/library/html/quine.html
>
>(Though it doesn't *quite* work as the script librarian has added standard
>headings).
>
>So, combining two recent threads, a one-line quine would be neat, as would a
>quine that displays its source in a pop-up window. My attempts have been a
>little pathetic -- so I'm not even going to list them. But I know lots of
>people on this list can do better.
>
rebol has quines inbuild. save as script:
rebol [content: true]
s: system/script/header/content
view layout [area s text join "#" length? s]