getAttr method

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Feb 1 12:49:27 PST 2008


"downs" <default_357-line at yahoo.de> wrote in message 
news:fnvs99$qm$1 at digitalmars.com...

> the following code is entirely valid D if you have scrapple.tools 
> installed:
> auto generator = stackthread = (void delegate(int) yield) { int i; while 
> (true) yield(i++); };
> writefln(generator(), generator(), generator());

You should start an IODCC.  Your code would win every time. 





More information about the Digitalmars-d mailing list