How do I check if a type is assignable to null at compile time?
Jack
jckj33 at gmail.com
Fri Feb 26 05:25:14 UTC 2021
I started with:
enum isAssignableNull(T) = is(T : Object) || isPointer(T);
but how do I cover all cases?
More information about the Digitalmars-d-learn
mailing list