opStar

Janice Caron caron800 at googlemail.com
Tue Nov 13 21:53:53 PST 2007


On 11/13/07, Bruno Medeiros <brunodomedeiros+spam at com.gmail> wrote:
> How would the pointer idiom have any advantage in terms of performance??
> (versus say, structs with hasNext() and next() member functions)

To add to that, how would the pointer idiom have any advantage in
terms of performance over foreach?

    T[] array;
    foreach(element;array) { /*...*/ }



More information about the Digitalmars-d mailing list