this is not an lvalue
kink via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 13 09:26:28 PST 2016
On Tuesday, 13 December 2016 at 16:23:16 UTC, Adam D. Ruppe wrote:
> On Tuesday, 13 December 2016 at 15:09:10 UTC, Andrey wrote:
>> void moveTo(ref Parameter parent) {
>
> You probably don't want the `ref` there, nor likely on any
> other method definitions (especially check removeValue).
Assuming `Parameter` is a class and not a struct, yes. Be sure to
check out the crucial distinction between the two in D (reference
vs. value types, similar to C# class and struct), otherwise you
won't get far.
More information about the Digitalmars-d-learn
mailing list