[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: userdata in 4.1
- From: "Peter Loveday" <peter@...>
- Date: Wed, 9 Jan 2002 22:25:32 +1030
Is there a way to associate a name with userdata in Lua 4.1?
I realise that I could add something to a table and look it
up, but I really would like to have the convenient way that
Lua 4.0 would tell me what userdata was when I printed it.
eg in Lua 4.1 wk3, doing
print(xyz)
will just give me
userdata: xxxxxxxx
Where in Lua 4.0, and possibly earlier 4.1 versions it would
tell me the type name associated with it. This was very handy
for quickly checking variables during debug.
Love, Light and Peace,
- Peter Loveday
eyeon Software