Re: [Vala] Vala Quine?



On Thu, Mar 20, 2008 at 08:46:05AM +0100, Ed Schouten wrote:
I've got a shorter one:

| using GLib; public class Quine { public static void main() { string s = "using GLib; public class Quine { 
public static void main() { string s = %c%s%c; stdout.printf(s, 34, s, 34); } }"; stdout.printf(s, 34, s, 
34); } }

Based on the old C printf trick. ;-)

Heaps better! I don't think it could get much shorter than that.

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]