lua-users home
lua-l archive

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


On 28 December 2010 19:20, Patrick Rapin <toupie300@gmail.com> wrote:
> I do not use this feature.
> In fact, I also find the current behavior very questionable: if
> garbage collection is switched off, it might be because we want to run
> garbage collection "manually" by explicitly calling collectgarbage().
> So if this call re-enables automatic collection, this is clearly a
> negative side effect.
> The proposed solution is IMHO more logical and more handy. If one
> wants a full collection *and* the automatic collection restarting, he
> just has to make two separate calls.

+1. In fact someone who disables the GC and then manually calls
"collect" is probably doing so exactly because they only want the GC
to run from manual invocation.

If this isn't fixed, I think "collect" should be renamed "collectandrestart" :)

Regards,
Matthew