opStar
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Tue Nov 13 05:45:22 PST 2007
Walter Bright wrote:
> Michel Fortin wrote:
>> I can't comment much on that since the details are so scarse, but I
>> hope you don't use the same syntax as in C++ for iterators. I've never
>> like much C++ pointer-like iterators, and I don't think working with
>> iterators should feel like we're manipulating pointers.
>
>
> The thing is that loops are a very fundamental construct, and being to
> implement them efficiently is of major importance. The pointer idiom has
> the advantage there.
How would the pointer idiom have any advantage in terms of performance??
(versus say, structs with hasNext() and next() member functions)
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list