Jarrett Billingsley <> changed:

           What    |Removed                     |Added
                 CC|                            |jarrett.billings...@gmail.c
                   |                            |om

--- Comment #1 from Jarrett Billingsley <>  
2009-08-05 18:48:39 PDT ---
Strangely, the compiler's behavior differs based on the type of the result of
get().  While the workaround works in this instance (returning Object), it
doesn't seem to work for any other type.  For instance, given this struct:

struct Proxy
    int get() { return 0; }
    alias get this;

If you do:

Proxy p;
int x = p;

you get an error saying it can't convert type Proxy to int.  But here's the
real kicker:

Object x = p;

_Now_ the compiler says that it can't convert p.get() of type int to Object! 
So for some reason, it's using the alias this when it shouldn't, and not using
it when it should.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to