New linked list
Sean Kelly
sean at f4.ca
Fri May 12 10:17:50 PDT 2006
For what it's worth, I've been following a derailed thread on
comp.lang.c++.moderated where Walter has been discussing foreach (curse
the long Google Groups links):
http://groups.google.com/group/comp.lang.c++.moderated/browse_frm/thread/d6695737a74e1853/33810ced7bb0924c
It makes complete sense that the data structure should be considered the
loop invariant in foreach and so this may be a lost cause, but I don't
want to give up on it without a bit more research, mostly because the
design of foreach is so useful that I very much prefer it over the
alternatives from a semantic perspective. If there is a way that
optimizations of foreach could be made more flexible without
compromising its design intent then fantastic. If not... well, who knows.
Sean
More information about the Digitalmars-d-announce
mailing list