[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to make ROMable Lua data
- From: "Juris Kalnins" <juris@...>
- Date: Mon, 12 Jan 2009 17:23:59 +0200
On Mon, 12 Jan 2009 17:01:43 +0200, Patrick Donnelly <email@example.com> wrote:
You should look at this thread .
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.