http://d.puremagic.com/issues/show_bug.cgi?id=4733
Dmitry S <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Dmitry S <[email protected]> 2013-05-11 21:08:09 PDT --- I feel that there is an additional bug: "if(slice)" evaluates an empty slice as true (as does "!!slice"), but "cast(bool)slice" does not compile ("cannot cast slice to integral type bool"). So somehow, converting arrays to booleans isn't consistently supported, and when it compiles, the meaning is indeed unintuitive. I agree that if conversion to booleans is to be supported, then "non-empty" is the best meaning to go for. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
