Low-Lock Singletons In D

bearophile bearophileHUGS at lycos.com
Fri May 24 06:05:35 PDT 2013


Max Samukha:

> Note that the Nullable is not phobos Nullable -
> the latter incurs unnecessary overhead for types that are 
> already nullable.

In Bugzilla I have suggested some improvements for Nullable, but 
in Phobos there is already an alternative Nullable that avoids 
that overhead:

struct Nullable(T, T nullValue);

Bye,
bearophile


More information about the Digitalmars-d mailing list