On Sunday, 1 September 2019 at 20:42:28 UTC, Jabari Zakiya wrote:
It still won't compile, with this error.
Error: AliasSeq!(modpg, res_0, restwins, resinvrs) is not an
lvalue and cannot be modified
Here's a gist of the code.
Top functions in code with issues are genPgParameters and
selectPG
https://gist.github.com/jzakiya/9227e4810e1bd5b4b31e949d1cbd5c5d
You can't do multiple assignments at once using AliasSeq; you
have to assign each variable individually:
auto parameters = genPgParameters(pg);
modpg = parameters[0];
res_0 = parameters[1];
restwins = parameters[2];
resinvrs = parameters[3];