Kenji Hara <> changed:

           What    |Removed                     |Added
                 CC|                            |
          Component|Phobos                      |DMD
           Platform|Other                       |All
         AssignedTo|            |
            Summary|[PATCH] Rebindable should   |Rebindable should be
                   |be castable to bool         |castable to bool
         OS/Version|Windows                     |All
           Severity|enhancement                 |normal

--- Comment #3 from Kenji Hara <> 2011-07-26 21:07:23 PDT ---
This is dmd issue.
Fixing bug5020 is incomplete, so property function + alias this is not
implicitly convertible to bool.

struct Rebindable
    Object obj;
    @property const(Object) get(){ return obj; }
    alias get this;

Rebindable r;
if (r) assert(0);
r.obj = new Object;
if (!r) assert(0);

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

Reply via email to