Simplified example:
void populateVars(T...)(T vars){
// Generates "cannot be ref" compiler error:
foreach(ref v; vars){
// Populate v with some data here...
}
}
error via Digitalmars-d-learn Sat, 11 Feb 2017 06:47:03 -0800
Simplified example:
void populateVars(T...)(T vars){
// Generates "cannot be ref" compiler error:
foreach(ref v; vars){
// Populate v with some data here...
}
}