Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!usc!apple!sun-barr!decwrl!adobe!greid From: greid@adobe.com (Glenn Reid) Newsgroups: comp.windows.news Subject: Re: A PostScript Quine Keywords: Quine, useless trivia Message-ID: <1193@adobe.UUCP> Date: 14 Sep 89 20:11:56 GMT References: <17620@bellcore.bellcore.com> Sender: news@adobe.COM Reply-To: greid@adobe.COM (Glenn Reid) Organization: Adobe Systems Incorporated, Mountain View Lines: 22 In article <17620@bellcore.bellcore.com> sjs@bellcore.com (Stan Switzer) writes: >For the heck of it, let's say a PostScript quine is a procedure >"{...}" which when followed by "n { exec } repeat" yields the same (or >equivalent) value for any non-negative integer value of "n" >(including 0). > >The shortest I have found for PostScript is > > {{[ exch /dup load /exec load ] cvx} dup exec} I must admit I don't understand quite what this is supposed to do, but it looks to me like it can get shorter. Why the 2 instances of "load", if you're trying to make it short? Does this not do the same thing: {{exch dup exec} dup exec} yields the same (or equivalent) value of what? How about a sample invocation, just so dim-wits like me can catch on? Thanks, Glenn