Null references (oh no, not again!)

Christopher Wright dhasenan at gmail.com
Wed Mar 4 15:14:39 PST 2009


bearophile wrote:
> Andrei Alexandrescu:
>> extern(C) MaybeNull!(void*) malloc(size_t s);
> 
> Probably I have missed part of the discussion, because wasn't it appreciated by people to use "?" to denote nullables? Something like:
> 
> extern(C) void*? malloc(size_t s);
> 
> Bye,
> bearophile

In C#, Type? is a nullable version of Type, where Type is a value type.

This usage is vaguely similar but sufficiently different that I would 
not use the same symbols, even in a discussion.



More information about the Digitalmars-d mailing list