SHORT Re: Suggestion: "fix" assert(obj)
Jascha Wetzel
firstname at mainia.de
Sun Jun 17 09:43:18 PDT 2007
Ary Manzana wrote:
> If you call
> assert(someObject.property) then you still get a segfault if someObject
> is null, and here it doesn't seam reasonable for the compiler to check
> if someObject is null.
yep, the assert can wrap an expression and therefore an arbitrary amount
of code. it's the same problem as with checking for AVs in the whole
program in general.
More information about the Digitalmars-d
mailing list