Jonathan M Davis <[email protected]> wrote:

struct Ordinal {
     private int representation;
     char getChar( ) {
         return representation + 'a'-1;
     }
     alias representation this;
     alias getChar this;
}

But like I said, it currently does not work.

Would "alias getChar this" really be legal? I thought that this had to be
aliased to a type.

Alias function this; works.


--
Simen

Reply via email to