[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Manipulating local variables from C in Lua 5.2.
- From: Rob Kendrick <rjek@...>
- Date: Fri, 6 Sep 2013 13:29:14 +0100
On Fri, Sep 06, 2013 at 02:26:06PM +0200, Karol Drożak wrote:
> How can I manipulating local variables from C in Lua 5.2?
In general: don't. Unless you have a really really really good reason,
modifying the calling function's environment is a bad idea.
Just return the values and say that it's up to the caller to put them
somewhere.
B.