auto limitation?

Namespace rswhite4 at googlemail.com
Tue Sep 11 12:24:53 PDT 2012


With multiple alias this this should work.

int getInt() const { return this.ivalue; }
alias getInt this;
float getFloat() const { return this.fvalue; }
alias getFloat this;

Or with a class method for implicit conversion.


More information about the Digitalmars-d-learn mailing list