Acces Violation: assert with null instance

Walter Bright newshound at digitalmars.com
Thu Jan 25 23:56:22 PST 2007


Sean Kelly wrote:
> Walter Bright wrote:
>> It does check if it's null. That's how the access violation exception 
>> gets thrown.
> 
> But that's generated by the hardware, isn't it?

Yes.

> Shouldn't assert 
> explicitly check whether c is null before calling its invariant?

Why, if the hardware does it for you (without extra bloat)?


More information about the Digitalmars-d-bugs mailing list