[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: luaL_checkudata: Bug? Feature?
- From: Roger Ivie <rivie@...>
- Date: Mon, 19 Jun 2006 12:20:30 -0700 (PDT)
I've noticed that luaL_checkudata cannot be used with a negative stack
index; that is, one relative to the top of the stack. The difficulty
is that it fetches the metatable from the registry before it fetches
the metatable from the userdata to be checked, so the stack depth
has changed by the time it does that.
--
roger ivie
rivie@ridgenet.net