lua-users home
lua-l archive

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


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