disable all member function calls for rvalues?
Kagamin
spam at here.lot
Tue Dec 22 01:31:10 PST 2009
Andrei Alexandrescu Wrote:
> > I think, possible solution is to disallow assign operations on the return value: =, +=, *=, ~=, ++ etc, but read operations should be allowed and functions should be callable by their symbolical names.
>
> Won't help. Consider:
>
> a.b.c.d.e.f = g;
>
> If anywhere on the path an rvalue is created, the code is useless busywork.
In contrast with the original example this is not a bug.
More information about the Digitalmars-d
mailing list