Null references redux

bearophile bearophileHUGS at lycos.com
Wed Sep 30 05:53:57 PDT 2009


If nonnull class references are added to D, then it can be good to add nonnull struct pointers too, to avoid similar bugs.

(In C# for a struct you define a "default" one, that gets used by the compiler as the default one when the struct reference is null).

Bye,
bearophile



More information about the Digitalmars-d mailing list