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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 21 08:23:54 PDT 2013


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



--- Comment #8 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-09-21 08:23:52 PDT ---
(In reply to comment #7)
> (In reply to comment #5)
> > Okay. Then it's my mistake.
> 
> On the other hand Issue 4733 is opened since three years, so I don't know if
> Walter & Andrei agree with it. If Issue 4733 gets refused then adding a warning
> or error for assert("something") is a good idea. So I thin it's better to keep
> this open until there's an official answer on Issue 4733.

This may be a separate issue. For example, the problem you pointed out can be
solved by rewriting array conditional evoluation to return length and not ptr
which still technically allows to write assert(""). In such case this isssue
still has some value.

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