Checking if a type is nullable.

Code



Application output:

Foo is a class Foo has indirections Foo can be null Bar is a struct void delegate() pure nothrow @safe has indirections void delegate() pure nothrow @safe can be null void[] has indirections void[] can be null string[string] has indirections string[string] can be null int* has indirections int* can be null

Paste info


Author: Guest
Views: 347
Private: no
Expires: Never
Uploaded: 25.06.15 20:01
Votes: 0

Compilation


Compiler: DMD 2.076.1 ( 2.076.1 )
Pointer size: m64

Actions