http://d.puremagic.com/issues/show_bug.cgi?id=4773


Simen Kjaeraas <simen.kja...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|]Rebindable should be       |[PATCH] Rebindable should
                   |castable to bool            |be castable to bool


--- Comment #1 from Simen Kjaeraas <simen.kja...@gmail.com> 2010-08-31 08:09:08 
PDT ---
Yeah, that's what you get when you press the wrong buttons. :p

Anyways, Rebindable should be castable to bool, to allow for the idiom
Rebindable!T foo; if (foo) {}.

Addition to typecons.d, line 747:

            T opCast(T : bool)()
            {
                return original !is null;
            }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to