opStarAssign?

0ffh frank at frankhirsch.youknow.what.todo.net
Fri Nov 23 08:57:28 PST 2007


Janice Caron wrote:
> My preference would be to have the compiler rewrite
>     *p += n;
> 
> as
>     p.opDerefAssign(p.opDeref() + n);

Wouldn't "p.opAssign(p.opDeref()+n);" be quite sufficient?

regards, frank



More information about the Digitalmars-d mailing list