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
