lua-users home
lua-l archive

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


At 06:53 27/07/99 -0300, you wrote:
>I'm not sure what you mean here.
>lua_dostring always executes the string it gets, but this execution can be
>simply the definition of some functions, eg:
>
> function f(x)
>  return x+g(x)
> end
>
>So, doing lua_dostring on this strings simply defines the function f.
>(More precisely, it simply stores a function value into the global
variable f.)
>--lhf

what I mean is, once executed the function definition, as in the example,
how can I retrieve the code later, without calling de function definition
again.

  (o,o)  Pablo Saldo  -  ec4pas@super.furg.br
  {`"'}  FUNDACAO UNIVERSIDADE FEDERAL DO RIO GRANDE
  -"-"-  ENGENHARIA DE COMPUTACAO