opUnary overloading

cal callumenator at gmail.com
Sun Aug 26 13:43:16 PDT 2012


I should clarify that I realize the auto cannot be used at 
runtime to select the return type - I just don't understand why 
the float part of the union is returned at runtime, instead of 
the int converted to whatever the compiler determines the 
return-type of opUnary to be.



More information about the Digitalmars-d-learn mailing list