More radical ideas about gc and reference counting

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Thu May 1 13:19:39 PDT 2014


On Thu, May 01, 2014 at 01:03:06PM -0700, Andrei Alexandrescu via Digitalmars-d wrote:
> On 5/1/14, 12:52 PM, "Nordlöw" wrote:
> >>>into a class. I'm inclined to say that we should outright prohibit that,
> >>
> >>That can't happen.
> >
> >Why is that?
> 
> (1) Too much breakage, (2) would disallow a ton of correct code, (3)
> no reasonable alternative to propose. We'd essentially hang our users
> out to dry. -- Andrei

Isn't this what we're already doing by (eventually) getting rid of class
dtors?

(Don't forget emplace'd class instances, which do not live in GC heap.)


T

-- 
Let's call it an accidental feature. -- Larry Wall


More information about the Digitalmars-d mailing list