Why is null lowercase?

Ali Çehreli acehreli at yahoo.com
Thu Jan 24 17:17:43 PST 2013


On 01/24/2013 12:42 PM, Matthew Caron wrote:

 >> for not null checks
 >>
 >> if ( ptr !is null) ...
 >
 > And too much perl has me wanting to write:
 >
 > if (ptr is not null)

IIRC, the !is operator is thanks to bearophile. We would have to reverse 
the logic before he insisted on !is: :)

     if (!(ptr is null))

Ali



More information about the Digitalmars-d-learn mailing list