Nullable!T with T of class type

kdevel kdevel at vogtner.de
Tue Jun 26 20:22:48 UTC 2018


On Tuesday, 26 June 2018 at 14:32:59 UTC, Nathan S. wrote:
> On Monday, 25 June 2018 at 19:40:30 UTC, kdevel wrote:
>> Is it possible
>> to "lower" the Nullable operations if T is a class type such 
>> that there
>> is only one level of nullification?
>
> Yes: https://run.dlang.io/is/hPxbyf
>
> ----
> template Nullable(S)

[...]

> ----

Works nicely. Thanks!


More information about the Digitalmars-d-learn mailing list