Why is for() less efficient than foreach?

Dukc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 10 12:54:01 PST 2017


On Friday, 10 February 2017 at 13:33:55 UTC, Bastiaan Veelo wrote:
> Thanks, I should have spotted that.
>
> Bastiaan.

No, you don't even have to spot things like that. If you assert() 
the result that is. (Not a rant, half of us wouldn't probably 
have bothered).




More information about the Digitalmars-d-learn mailing list