Re: weakened userdata



muppet <scott asofyet org> writes:

It's a  
little more subtle when dealing with closures, where it's easy to trap  
a self-reference by accident.

Yep.

The way that GObjects destroy themselves mitigates the reference cycle  
problems for the most part.

Err, umm, so the executive summary would be "best to call
$widget->destroy explicitly", as opposed to worrying too much whether
merely dropping the last reference to a widget will cleanup it and its
components.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]