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

Reply via email to