lua-users home
lua-l archive

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


On Mon, 12 Jan 2009 17:01:43 +0200, Patrick Donnelly <batrick.donnelly@gmail.com> wrote:

You should look at this thread [1].

[1] http://lua-users.org/lists/lua-l/2008-11/msg00331.html

Thank you, it has many useful things. Especially link to the Lua test
suite. This patch actually does not put any native Lua objects into
the r/o space, right? What I want is to put there any normal Lua data
(closures, tables, strings, userdata ...), and to reference it from heap values.

But such "light" CFunctions and tables are very useful, too.
They also can be implemented by setting appropriate metatable for lightuserdata.
That way it requires no change to Lua at all.

--j<