Re: [Vala] Vala Quine?



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. ;-)

-- 
 Ed Schouten <ed 80386 nl>
 WWW: http://g-rave.nl/

Attachment: pgpJhxuYlFPDR.pgp
Description: PGP signature



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