Pointers or copies?

Tim Keating holyspamster at gmail.com
Thu Dec 21 21:46:10 PST 2006


In article <emceee$2s0a$1 at digitaldaemon.com>, BCS at pathilink.com says...
> Take a look at foreach. If queue is an array, this will work:
> 
> foreach(item;queue) item.draw();

Little syntax nitpick -- that needs to be foreach(auto item; queue) 
item.draw(), I believe.

Normally I wouldn't fuss, but the OP did say he was new to the language 
:)

TK



More information about the Digitalmars-d mailing list