lua-users home
lua-l archive

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


Again I need your help, suggestions...

I would like to check if a function exist. But the name of the function
is stored in a string like this: "Here.And.There" Or alternative in a
table like this Table={'Here','And','There'} or in any other form.
Like this "['Here']['And']['There']" But the important point: I don't
know the depth of the table at the calling point and so I can't write

Function[Table[1]][Table[2]][Table[3]]

to call

Function.Here.And.There()

In other words: what is the way (if there is one acceptable) to achieve
this:

String="['Here']['And']['There']"
Function[String]


Next question:

I would like to define the names of a simple table tree in a string or
table e.g. "Here.And.There" or again {'Here','And','There'}

As the result I need the equivalent for the following code:

Here={}
Here.And={}
Here.And.There={}

But it should work with any number of defined tables in the string
"Here.And.There...." or table {'Here','And','There',...}

Thank you very much.

--
Markus