[Issue 9112] Uniform default construction

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 6 04:37:56 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9112



--- Comment #7 from bearophile_hugs at eml.cc 2012-12-06 04:37:51 PST ---
(In reply to comment #6)
> Personally, I've used it so that an integer could be null in cases where I
> needed to distinguish between having a specific value and having no value at
> all,

In D std.typecons.Nullable!int is often better than a heap-allocated int.



> Have you honestly never needed a pointer to an int?

Not that I remember.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list