Null references (oh no, not again!)
Yigal Chripun
yigal100 at gmail.com
Wed Mar 4 12:00:00 PST 2009
Andrei Alexandrescu wrote:
> 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
>
> Please no more syntax.
>
> Andrei
It seems to me that making references non-nullable and pointers
maybe-nullable covers all the use-cases.
More information about the Digitalmars-d
mailing list