[Issue 11080] assert(`string`) should be forbidden
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 21 15:03:02 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11080
--- Comment #21 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-09-21 15:03:02 PDT ---
(In reply to comment #20)
> (In reply to comment #19)
>
> > Thanks for raising the problem, but this one is a separate issue.
>
> It's a separate issue, but if you disallow dynamic arrays in boolean evaluation
> contexts, then it also disallows code like assert("something going wrong") and
> you don't need to add a special rule to D for such buggy case.
Yes, but one of the way to fix the issue (which I consider as a better one) is
to cast array not to pointer but to length and still allow arrays in boolean
conditions.
--
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