this is not an lvalue

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 13 09:52:21 PST 2016


On Tuesday, 13 December 2016 at 17:26:28 UTC, kink wrote:
> Assuming `Parameter` is a class and not a struct, yes.

Even if it is a struct, ref wouldn't make a difference here 
because the variable is assigned to a member, which means ref 
would get lost.


More information about the Digitalmars-d-learn mailing list