On 30 April 2014 09:18, Thomas Jericke
<tjericke@indel.ch> wrote:
Hi,
I am not sure if I understand you right. Do you want to have a single Lua function split over
into several files, or do you want to have a single program split over several files?
Both is possible, but the first is actually rather unusual. If you need to split a single function
over several files, there is certainly something wrong with your coding style ;-)
If you could clarify which of the two above you want I would try to show you how either is done.
Thanks for your answer.
I''ll try to make things more clear with an example.
Suppose I have defined func_y in file_y.lua
and I want to use it within func_x that's in file_x.lua.
func_x is the main lua function that has to be called and
executed from my C code.
file_x.lua and file_y.lua are both in a USB stick used
in my embedded system to make lua functionalities avaliable
when needed.
Now the question is: how can I load and execute successfully
func_x?
If things are still "foggy" please, tell me.
As I told, I'm a Lua newbie and this doesn't help me to explain
my problems...
Thanks,
I.
--
"Don't find fault, find a remedy" (H.Ford)
-------------------------------------------------------------------------
"Beer is proof that God loves us and wants us
to be happy" (Benjamin Franklin)
-------------------------------------------------------------------------