[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: how to call Lua functions recursively
- From: Edgar Toernig <froese@...>
- Date: Wed, 21 Mar 2001 05:14:30 +0100
> Do you know how to call Lua functions recursively.
> Such as I have a Lua function
> function gettable(t)
> But I failed to recursively call gettable in gettable.
> Anyone can tell me how to call lua functions recursively ?
This should work. The only case where this would not work is
if gettable was declared local. Any way that there is a
somewhere above? In that case the compiler will issue a warning
like "cannot access a variable in outer scope".