if(arr) now a warning

via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 29 04:07:51 PDT 2015


On Wednesday, 29 April 2015 at 04:38:12 UTC, Steven Schveighoffer 
wrote:
> FYI, Andrei and Walter are reversing this change barring any 
> new evidence it's helpful to people. Please speak up if you 
> disagree.
>
> https://github.com/D-Programming-Language/dmd/pull/2885#issuecomment-97299912

I disagree, too. For me, the value of this change is not in 
detecting bugs, but in cleaning up a design mistake. It therefore 
doesn't matter whether there is evidence it helps avoiding bugs.

However, I did find several ones in my own code and in vibe.d:

https://github.com/rejectedsoftware/vibe.d/commit/e9e66f4e726db64d15e078dc472606b57783728a#diff-a0c0675933703d01a5d6ad8ebfc097abL79
https://github.com/D-Programming-Language/dub/pull/556/files

and similar ones with assert().


More information about the Digitalmars-d mailing list