lua-users home
lua-l archive

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



On Tuesday, October 29, 2002, at 09:22 AM, Russell Y. Webb wrote:
Personally, I think the best (and most Lua-like) solution is to make the garbage collector completely modular with a published way to redefine it with appropriate hooks (many of which can be empty) to define most any scheme.

That might not be possible as some collectors require write and/or read barriers(you need to tell them when a reference is added or read). Putting in these barriers and leaving hooks to them would cost too much in overhead. You could avoid the unused hook overhead with defines, but still, you'd add a lot of complexity to the C bindings that likely wouldn't be used.

Cheers,
Steve
OSX freeware and shareware: http://www.dekorte.com/downloads.html