More radical ideas about gc and reference counting

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu May 1 14:29:22 PDT 2014


On 5/1/14, 1:19 PM, H. S. Teoh via Digitalmars-d wrote:
> 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?

Not even close. (1) A lot less breakage, (2) disallowed code was already 
not guaranteed to work, (3) reasonable alternatives exist.

Andrei



More information about the Digitalmars-d mailing list