comparing typedefed type to null

Anders F Björklund afb at algonet.se
Fri Mar 2 07:50:44 PST 2007


mike wrote:

> You should always use the "is" operator to check for null:
> 
> ' if (br is null) { ... }

Using == is perfectly valid for pointers (such as those).

--anders


More information about the Digitalmars-d-learn mailing list