[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Glitch in __len metamethod for full userdata?
- From: Michael Roth <mroth@...>
- Date: Wed, 6 Jan 2010 22:36:03 +0100
I came across a small documentation or maybe implementation glitch:
The documentation at http://www.lua.org/manual/5.1/manual.html#2.8 states,
that the #-operator will eventually call the __len metamethod with
But at least for userdata with a metatable and a __len metamethod, the call in
I came across this issue because I employed an assert(lua_top(L)==1) in my
code... Not a big issue... But maybe someone interested in?