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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 21 03:01:21 PDT 2013


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


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim at maxim-fomin.ru


--- Comment #2 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-09-21 03:01:19 PDT ---
I think banning assert("Any array literal"); makes sense as it is always true
and may hide programmer error of forgetting to place some condition before
string. Empty array literal is a special case - it is currently implemented as
pair null + 0 size.

-- 
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