Unexpectedly nice case of auto return type

Andrea Fontana nospam at example.com
Tue Dec 3 10:02:47 UTC 2019

On Tuesday, 3 December 2019 at 09:48:39 UTC, Basile B. wrote:
> You see what surprises me here is that we cannot express the 
> special type that is `TypeNull` and that can only have one 
> value (`null`) so instead we have to use `auto` or 
> `typeof(null)`.

You can still create an alias anyway :)

alias TypeNull = typeof(null);

More information about the Digitalmars-d-learn mailing list