opAssign and references

Simen Kjærås simen.kjaras at gmail.com
Tue Jan 31 22:15:48 PST 2012


On Wed, 01 Feb 2012 01:14:38 +0100, Nicolas Silva <nical.silva at gmail.com>  
wrote:

> Oh, my bad, sorry, when I tried the code i showed in the other mail, I
> had forgotten the parenthesis on the call to refA() (like if it was an
> attribute).
>
> Once fixed it works for me.
>
> f1.refA() = 24; //ok
> f1.refA = 24; //not ok, my mistake

Still, this should work, and it does under DMD trunk. Can confirm that
this is a bug under 2.057 and earlier (at least 2.056 :p).


More information about the Digitalmars-d-learn mailing list