[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: copying tables across lua states
- From: "Eric Ries" <eries@...>
- Date: Sun, 6 Jan 2002 20:20:43 -0500
At There, we have developed the ability to share a reference between
completely independant lua_States under Lua 4.0. It's a bit dangerous, but
if you know what you're doing, it can be useful. Let me know if you'd be
interested in seeing the code.
Eric
-----Original Message-----
From: owner-lua-l@tecgraf.puc-rio.br
[mailto:owner-lua-l@tecgraf.puc-rio.br]On Behalf Of Ignacio Castaño
Sent: Sunday, January 06, 2002 12:21 PM
To: Multiple recipients of list
Subject: Re: copying tables across lua states
"Edgar Toernig" wrote:
> Completely independent states or threads with shared state? And you have
> to set some value. Is a simple 1 enough?
not that simple. It's not a shared table, the values of the table are
shared, but the table itself not. That is, I want to be able to change a
value that exists in both tables, but i can add key-value pairs to each
table independently, so, a pair added to a table won't appear in the other.
I think that's actually not possible so i will have to think about doing
something different.
Ignacio Castaño
castano@asidesoft.com