is there a limit

is there a limit in Corona or in Lua as to how many functions we can have in a program/file? I need to have 20 functions in one of my module. If I cross 17, I get a cryptic @#$%@#$ error that says “function at line 342 has more than 60 upvalues.” I am using the director class, so could this be a limitation in the director class?

-saidul [import]uid: 46630 topic_id: 22284 reply_id: 322284[/import]

http://developer.anscamobile.com/forum/2011/04/24/error-more-60-upvalues [import]uid: 10389 topic_id: 22284 reply_id: 88785[/import]

not following that discussion totally, maybe 'cause I am too sleepy now but the problem is almost exactly the same. the link referenced there (http://wow.incgamers.com/forums/showthread.php?t=414407) doesn’t give me anything. probably too old. from some Lua discussion, it sounds like something related to external C functions or something. workaround referenced fixed the issue for me too but it’s not making sense. so there is a limit on number of variables/functions we can have within a function? will try to do more research later
@saidulislam [import]uid: 46630 topic_id: 22284 reply_id: 88788[/import]

It’s a limit of LUA. Not Corona. [import]uid: 10389 topic_id: 22284 reply_id: 88793[/import]