From: Mathieu Bouchard Date: 2001-03-08T12:41:06+09:00 Subject: [ruby-talk:12256] Re: Quines anyone? On Tue, 6 Mar 2001, Dave Thomas wrote: > "Ben Tilly" writes: > > On PerlMonks I just ran across a reference to the > > canonical list of quines: > Hal's got some at http://www.hypermetrics.com/ruby.html. In last July I wrote a quine. proc{|f|f+".call %q{#{f}}"}.call %q{proc{|f|f+".call %q{#{f}}"}} It seems I just had visited Hal's site. Mine is slightly different: it evaluates to itself, so if you have it in $a, you can type (in irb or your own rep loop): eval $a eval eval $a eval eval eval $a eval eval eval eval $a have fun! matju