Changing Environment Paths using D language's Phobos Library
Paul Backus
snarwin at gmail.com
Sat Jun 29 13:46:44 UTC 2019
On Saturday, 29 June 2019 at 09:50:12 UTC, BoQsc wrote:
> The correct syntax is:
>>environment.opIndexAssign("Some Random Value Here",
>>"variableName");
>
> And not this one:
>>environment.opIndexAssign("variableName", "Some Random Value
>>Here");
Note that opIndexAssign is an operator overload [1], so you can
also write it like this:
environment["variableName"] = "Some Random Value Here";
[1]
https://dlang.org/spec/operatoroverloading.html#index_assignment_operator
More information about the Digitalmars-d-learn
mailing list