opStar
dennis luehring
dl.soluz at gmx.net
Sat Nov 10 05:46:10 PST 2007
dennis luehring schrieb:
> Janice Caron schrieb:
>> So, we can write p.m for real pointers, but we have to write (*p).m
>> for classes that implement opStar()? That seems inconsistent.
>>
>> What's opStar for, if not to implement iterators?
>
> i think the same way as in c++ - for example vector class with
> multiplication operator
>
> do not missunderstand the syntax "*e" wrong
>
> a * b --> *b == *e
sorry - totaly wrong here
More information about the Digitalmars-d
mailing list