Thoughts on some code breakage with 2.074

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Wed May 10 12:06:40 PDT 2017


On 05/10/2017 11:49 AM, Jonathan M Davis via Digitalmars-d wrote:
 > On Wednesday, May 10, 2017 05:05:59 Ali Çehreli via Digitalmars-d wrote:
 >> On 05/09/2017 10:34 AM, H. S. Teoh via Digitalmars-d wrote:

 >>  > After upgrading the compiler, I get a warning that using a 
pointer as a
 >>  > condition is deprecated.

 > I think that that's the one that Andrei and Vladimir didn't like, because
 > they actually used the conversion to bool correctly in their code a bunch
 > (whereas most everyone else thought that it was too error prone), and the
 > deprecation ended up being removed.
 >
 > - Jonathan M Davis

Bummer for H. S. Teoh I guess... :/

Although I prefer explicit over implicit in most cases, I've never 
graduated from if(p) and still using it happily. :)

Ali



More information about the Digitalmars-d mailing list