[Issue 17440] Nullable.nullify() resets referenced object

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 6 05:33:12 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17440

--- Comment #3 from Marenz <dmdtracker at supradigital.org> ---
>Is there any particular reason you need to use Nullify with a class type instead of simply using the class type directly and use "null" to indicate the unset state?

There is no pressing need to do this.
I am having a special array class that wraps every member in a Nullable and of
course it's templated.

So I needed to add a special overload/case for class types to work around that.

It's less a 'need' but more a 'this was very unexpected'.

--


More information about the Digitalmars-d-bugs mailing list