[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Simple lua code crashing...
- From: Paige DePol <lual@...>
- Date: Sat, 28 Jun 2014 04:10:39 -0500
On Jun 28, 2014, at 4:00 AM, Austin Einter <email@example.com> wrote:
> With all your help, I got it working.
> It is really a pleasure to work with C/Lua combination as frequent C code modification can be avoided.
Unless you embed your Lua code into your C code, then you still have to compile your C code for your Lua changes to take effect. Frequently there is a separation of coding duties between C-land and Lua-land, which is why it can be helpful for your program to be able to dynamically load the scripts externally. This way the scripts can be modified without requiring the program to be recompiled, at least for debugging builds. For release builds you can do any number of things, including embedding pre-compiled Lua scripts if you do not require the scripts to change at run time.
Happy to hear you got your script up and running, good luck with your future Lua endeavours! :)