[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: callstack recursive environment
- From: Kevin Martin <kev82@...>
- Date: Sat, 24 Mar 2012 23:39:28 +0000
I'm only just getting my head around this at the moment, but I think you automatically get this behaviour in lua 5.2.
As I understand it, if you load the function, then change the first upvalue to be the table associated with your c++ object. That table will the become the global environment for the function, and anything it calls.
Kev