[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata
- From: Kevin Martin <kev82@...>
- Date: Tue, 3 Dec 2013 23:25:42 +0000
On 3 Dec 2013, at 22:06, Sir Pogsalot <sir.pogsalot@gmail.com> wrote:
> As far as I see it's simply for use with get/setuservalue(), to make a GC association.
I'm not sure, but I think you're asking here if there is a use of setuservalue unrelated to the GC?
As an example I have a sqlite3 memory database wrapped in a userdata. In that database I want to be able to query certain objects that exist in Lua - this is done by creating an sqlite3 virtual table that knows how to query the Lua object, the Lua objects are stored in the userdata's user value (a table) so they can be accessed by the virtual table module.
Kev
- References:
- Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sir Pogsalot
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sean Conner
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sir Pogsalot
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sean Conner
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sir Pogsalot
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sean Conner
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sir Pogsalot
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sean Conner
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sir Pogsalot
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, David Heiko Kolf
- Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata, Sir Pogsalot