Quines

BCS BCS at pathlink.com
Sat Jul 1 11:26:34 PDT 2006


@run time

void main(){printf(a~\140~a~\140";");}char[]a=`void 
main(){printf(a~\140~a~\140";");}char[]a=`;

@compile time   =op

const char[]a=`const char[]a=`;const char[]b=`;const char[]`;const 
char[]c=`;pragma(msg,a~\140~a~\140~b~"b=\140"~b~\140~b~"c=\140"~c~\140~c);`;pragma(msg,a~\140~a~\140~b~"b=\140"~b~\140~b~"c=\140"~c~\140~c);



More information about the Digitalmars-d-learn mailing list