Dag Sverre Seljebotn wrote:
> Stefan Behnel wrote:
>> we could generate an external closure for a type (not for the
>> instance, just the type object) that keeps all referenced global values.
>> The type would then reference that instead of the module.
> 
> Ah, nice idea; that can be done right away (= right after 0.11) without 
> #144, can it not?

Sure. As you can see, I nominated #218 for 0.12 anyway. This would be a
perfect first step.


> I.e. let all global values be referenced by a big tuple; then have each 
> type and the module reference the tuple, but the tuple itself doesn't 
> reference anything but the values themselves => no cycles.

Although "globals" would also include types, right? So there's our
reference cycle back... (although that doesn't hit us until we really start
moving types to the heap)

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to