--0016e6464e24ba041b046b41587d
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Is using File considered cheating?

    puts File.readlines __FILE__


On Mon, Jun 1, 2009 at 11:17 AM, Aureliano Calvo
<aurelianocalvo / gmail.com>wrote:

> And I did one with a carriage return:
>
> s
%s%c;printf(s,34,s,34,13,10)%c%c";printf(s,34,s,34,13,10)
> > > A little longer but looks nicer > > > On Mon, Jun 1, 2009 at 12:16 AM, Aureliano Calvo > <aurelianocalvo / gmail.com>wrote: > > > I did something like that, but with parenthesis. > > > > s
%s%c;printf(s,34,s,34)";printf(s,34,s,34)
> > > > It is based on the C quine that uses printf on the wikipedia page. > > > > > > > > On Sun, May 31, 2009 at 2:10 PM, Pascal J. Bourguignon < > > pjb / informatimago.com> wrote: > > > >> Robert Dober <robert.dober / gmail.com> writes: > >> > >> > Ok, the shortest solution did not have much success, what about a long > >> > one then ;) > >> > > >> > http://pastie.org/495692 > >> > >> > >> $ echo ----- ; cat quine.rb ; echo ----- ; ruby quine.rb ; echo ----- > >> ----- > >> q4;printf a4;printf a
%s%c,q,a,q;puts",q,a,q;puts
> >> ----- > >> q4;printf a4;printf a
%s%c,q,a,q;puts",q,a,q;puts
> >> ----- > >> > >> > >> > >> > >> > >> -- > >> __Pascal Bourguignon__ > >> > >> > > > -- jorrel --0016e6464e24ba041b046b41587d--