opStar

dennis luehring dl.soluz at gmx.net
Sat Nov 10 05:43:03 PST 2007


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



More information about the Digitalmars-d mailing list