lua-users home
lua-l archive

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


But certainly if the userdata (key) is the same, it will always return the same data?

-----Ursprüngliche Nachricht-----
Von: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br]
Gesendet: Montag, 26. April 2004 10:16
An: Lua list
Betreff: Re: AW: userdata as table-key


Michaela Kyavar wrote:
> 
> Are you saying that the getn should not work, but indexing with the userdata
> should?
> 

Beware though, that the userdata might not have the same value for every time you
get it. So unless you reference the original userdata (the key) somewhere and use
that for each lookup, you might not find the original values since the userdata could
be different (another key), not saying that the contents of the userdata is different,
only the value as seen in lua.

//Kaos