Suggestion: "fix" assert(obj)

Walter Bright newshound1 at digitalmars.com
Thu Jun 14 11:14:38 PDT 2007


Kristian Kilpi wrote:
> The problem is that
> 
>   assert(obj);
> 
> does not first check if 'obj' is null.

Yes it does, it's just that the hardware does the check, and gives you a 
  seg fault exception if it is null.



More information about the Digitalmars-d mailing list