Re: Load lua and run from lua code

Posted by tobor on
URL: http://elua-development.15.s1.nabble.com/Load-lua-and-run-from-lua-code-tp7578238p7578283.html

I am actually going to load some lua from a file on a ftp site, should I just read the contents into an array and then use loadstring to execute it?


On Wed, Dec 11, 2013 at 7:45 AM, Martin Guy <[hidden email]> wrote:
On 10/12/2013, Bill <[hidden email]> wrote:
> Is it possible to load a lua file while running lua code and then run the
> file?
> Something like the XMODEM recv at the prompt only while in lua to receive
> and then run the new lua code?

If you specifically need to receive the code via xmodem you will also
need a Lua version of xmodem, such as
https://github.com/martinwguy/elua-tools/blob/master/recv.lua

    M
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev