(non)nullable types

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Feb 9 07:38:52 PST 2009


bearophile wrote:
> Jason House:
>> Non-nullable types should be implicitly castable to nullable types when making function
>> calls that don't support them.
> 
> An explicit cast may be better/safer.

Non-nullable types are proper subtypes of nullable types. There is no 
added safety in requiring a cast.

Andrei



More information about the Digitalmars-d mailing list