Smart pointers instead of GC?
Namespace
rswhite4 at googlemail.com
Tue Feb 4 16:16:17 PST 2014
On Wednesday, 5 February 2014 at 00:12:11 UTC, Shammah Chancellor
wrote:
> 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
class Foo { }
Foo? f;
It's the same.
More information about the Digitalmars-d
mailing list