[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: the max number of upvalue
- From: cloudwu <cloudwu@...>
- Date: Thu, 21 Sep 2006 00:59:15 +0800
Hello Lua,
I found that the max number of upvalue for a cclosure must less
than 256, because ClosureHeader use a byte for nupvalyes.
-------------------------------
#define ClosureHeader \
CommonHeader; lu_byte isC; lu_byte nupvalues; GCObject *gclist; \
struct Table *env
-------------------------------
But the Reference Manual doesn't tell us this limit.
I think writing this into the manual will be better, IMHO. :)
--
Best regards,
cloudwu mailto:cloudwu@163.com
http://blog.codingnow.com
[This will pass too]