Alias to struct memembers of a function paramater as a shortcut => need this for XYZ of type void*
Robert M. Münch
robert.muench at saphirion.com
Sun Apr 7 12:23:13 UTC 2019
struct X {
TYPE a;
TYPE b;
}
myFunc(X _struct){
alias a = _struct.a;
a = myOtherFunc();
}
X myStruct;
myFun(myStruct);
This gives an error: need this for a of type void*
I don't understand why, because all I want is a shortcut the symbol of
the parameter.
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list