Is Nullable supposed to provide Optional semantics?

vit vit at vit.vit
Fri Dec 29 21:34:27 UTC 2017


On Friday, 29 December 2017 at 20:52:51 UTC, Chris Paulson-Ellis 
wrote:
> I've been bitten by trying to use Nullable(T) on class types. 
> Minimal example...
>
> [...]

use:
    n = Nullable!Object.init;   //doesn't call destroy

instead of:
    n.nullify();


More information about the Digitalmars-d-learn mailing list