[Issue 4733] Possible bugs caused by dynamic arrays in boolean evaluation context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 10 12:30:35 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=4733


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx


--- Comment #23 from hsteoh at quickfur.ath.cx 2013-12-10 12:30:31 PST ---
(In reply to comment #19)
> 1. making this change will break existing code

Unclear code *should* be broken.


> 2. forcing people to use if(arr.ptr) instead is just ugly

Yes, they should use if(!arr.empty) or if(arr.length>0) instead.

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


More information about the Digitalmars-d-bugs mailing list