Null references redux

Walter Bright newshound1 at digitalmars.com
Sat Sep 26 15:18:15 PDT 2009


Denis Koroskin wrote:
>> If you disallow null references what would "Object foo;" initialize to 
>> then?
> Nothing. It's a compile-time error.

Should:

    int a;

be disallowed, too? If not (and explain why it should behave 
differently), what about:

    T a;

in generic code?



More information about the Digitalmars-d mailing list