Smart pointers instead of GC?

Shammah Chancellor anonymous at coward.com
Tue Feb 4 16:12:10 PST 2014


On 2014-02-02 17:30:27 +0000, Namespace said:

> Sounds good. But why @nullable instead of C# choice of "Type?" ?

@nullable is not supposed to do the same thing as "Type?" (or rather 
the syntatic sugar for Nullabe<Type> template).   Nullable<type> is to 
enable Value types to be null. For example: Nullable<Double>

@nullable in D is supposed to allow reference types to contain null.  
In C# reference types are ALWAYS allowed to be null.

-S



More information about the Digitalmars-d mailing list