this is not an lvalue

Andrey via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 15 06:05:08 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).

In D, probably, I could write something like this:
> void open(in string fileName) {...}


More information about the Digitalmars-d-learn mailing list