opStar

Janice Caron caron800 at googlemail.com
Mon Nov 12 09:36:45 PST 2007


On 11/12/07, Walter Bright <newshound1 at digitalmars.com> wrote:
YOU:
> It's for iterators.
> To do an iterator, you need ...
> 1) copy
>
> ... already covered by operator overloading

ME:
> You missed
> 5) assignment

YOU:
> I think (1) covers that.

My apologies for not getting this. How does opStar give us assignment? As in
    *p = n;

...unless opStar can return an lvalue? Is that what you're saying? Are
we finally getting ref return types?



More information about the Digitalmars-d mailing list