dereferencing null

bearophile bearophileHUGS at lycos.com
Mon Mar 5 17:09:13 PST 2012


Adam D. Ruppe:

> I've trained myself to use assert (or functions with assert
> in out contracts/invariants) a lot to counter these.

I think contracts are better left to higher level ideas. The simple not-null contracts you are adding are better left to a type system that manages a succinct not-null syntax.

Bye,
bearophile


More information about the Digitalmars-d mailing list