Re: Quine - a program that replicates itself
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Aug 18, 2000
- 479 views
Been there, done that :) Pete On Fri, 18 Aug 2000 13:50:19 +1000, Aidan Bindoff <abindoff at ONE.NET.AU> wrote: >Here's an interesting brain teaser - writing a quine in Euphoria. For those >of you that don't know what a quine is: A Quine is a program that replicates >itself exactly. A program that copies it's own code from disk does not >count. >I have attached my first quine if you are interested. This program takes >advantage of Euphoria's native atom/sequence structure, and methods of >displaying sequences. It does not write to disk, just to the monitor. > >I would be interested in seeing different quines in Euphoria. Euphoria's >handling of sequences lends itself to many potential variations of quine. > >Kind Regards, >Aidan. >