Suggestion: "fix" assert(obj)
Ary Manzana
ary at esperanto.org.ar
Fri Jun 15 13:02:17 PDT 2007
Why would you want to check an object's invariant? Isn't the compiler
doing that before and after you execute a public method? What's the use
for it?
Kristian Kilpi escribió:
>
> This issue has been proposed before. Well, I think it's the time suggest
> it again...
>
> The problem is that
>
> assert(obj);
>
> does not first check if 'obj' is null. It just executes the object's
> invariants.
More information about the Digitalmars-d
mailing list