[Issue 11080] assert(`string`) should be forbidden

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 21 11:08:04 PDT 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #13 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-21 11:08:02 PDT ---
(In reply to comment #12)
> (In reply to comment #11)
> These all seem like legit use cases to me.

Banning assert("") just seems like a pointless special case, we should either
disallow implicit conversion to bool or drop the issue altogether. Adding a
special rule for assert is a bad idea, we already have enough special rules
like assert(0).

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


More information about the Digitalmars-d-bugs mailing list