[D typesystem] What is the type of null?
Justin Johansson
no at spam.com
Tue Oct 12 07:43:43 PDT 2010
On 13/10/2010 1:34 AM, Stanislav Blinov wrote:
> 12.10.2010 17:52, Justin Johansson пишет:
>> Given that if a function should return something,
>> and that function may return null in, at least
>> reference type return scenarios, one would expect that
>> "null" has a type.
>>
>> What is the type of "null" in the D typesystem?
>>
>> - JJ
>>
>
> writeln(typeid(typeof(null))) yields void* :)
>
Are you suggesting that the type of "null" is
opaque or merely saying what the D compiler says
without an opinion?
- JJ
More information about the Digitalmars-d
mailing list