[REBOL] Re: One-line Quine anyone?
From: carl:cybercraft at: 25-Nov-2002 19:12
On 24-Nov-02, [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.
> Sunanda
How about this...
REBOL[] do a: {view layout[field 500 rejoin["REBOL[] do a: {" a "}"]]}
70 characters, complete with header and source in a popup window! do
is a very powerful word... (:
--
Carl Read