lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,
 
I'm a Lua newbie and this is my first email to the list.
I'm working wiht Lua into and embedded system where the main
application is written in C and Lua is used to configure part
of the system activities.
I'm currently alble to load and execute a Lua script, loading it
from a USB stick.
What I'm now trying to do is execute a Lua function that uses an
external module I wrote.
So I have to load more than a single Lua file.
I know that I could compile file_1.lua, file_2.lua, ..., file_n.lua
and meld them in a  single bytecode but, just as an experiment,
I would like to work with different lua files (text format, no bytecode).
Is there a way to load and execute from my C program a Lua
fuction which is "distributed" in more than a Lua text file?
Without melding the files in a single bytecode?
I hope I was clear enough (if I wasn't please, tell me and I'll ry to explain again and better!) and that somebody out there can give me
some suggestions.
Thanks a lot in advance,
Igor.
 


--
"Don't find fault, find a remedy" (H.Ford)
-------------------------------------------------------------------------
"Beer is proof that God loves us and wants us
to be happy" (Benjamin Franklin)
-------------------------------------------------------------------------