New linked list

Kyle Furlong kylefurlong at gmail.com
Fri May 12 12:50:04 PDT 2006


Sean Kelly wrote:
> 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

Straight from the, pardon the phrase, horse's mouth:

"That said, D will probably get some notion of const. But it will be one
that works, i.e. can be relied upon by both the programmer and the
optimizer."

And there was much rejoicing.

-- 
Kyle Furlong // Physics Undergrad, UCSB

"D is going wherever the D community wants it to go." - Walter Bright



More information about the Digitalmars-d-announce mailing list