[Issue 9112] Uniform default construction

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 5 21:42:31 PST 2012


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



--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-12-05 21:42:28 PST ---
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, but there are plenty of other uses for it. Have you honestly never needed
a pointer to an int? It's needed less than some other things to be sure, but
there are times when it is needed, and constructing such pointers is horrible
with how things stand. It also makes constructing them generically very
difficult, which is precisely what Kenji is bringing up in this enhancement
request. It's just that he's talking about them when they're on the stack, and
I'm pointing out that it would also be valuable to do the same with the heap.

-- 
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