this is not an lvalue
kinke via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 13 10:22:25 PST 2016
On Tuesday, 13 December 2016 at 17:52:21 UTC, Adam D. Ruppe wrote:
> 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.
I should have been more precise, I meant the type of `this`, not
`Parameter` (I actually assumed both would be the same). ;)
More information about the Digitalmars-d-learn
mailing list