-nogc

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Apr 23 16:03:58 PDT 2009


Jason House wrote:
> 
>> I think WeakRef!T would also have to be part of the offering inside
>>  object_whatever.d. Then the example above can be fixed for the 
>> refcounting case by making one of the references weak.
> 
> Now I wonder if the weak ref thread has (indirectly) caused the no gc
> thread. Have you and/or Walter and/or Sean decided that weakref is
> sufficiently tied to the gc that is should be part of the D standard
> libraries?

I haven't followed that closely, but then you never know how the mind works.

> PS: I discovered recently that wikipedia says D has no support for
> weak references. It's always good to remove negative points about a
> language ;)

Yes, weak references should be in there. I learned today that Java has 
also soft references, which the gc can collect and nullify when on low 
memory conditions.


Andrei



More information about the Digitalmars-d mailing list