lua-users home
lua-l archive

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


Hm... I think I was not able to get that working with local functions, but if it works with globals then no problem (later I can make them local).

Thanks!

(I'm lua newbie really)

On 3/11/2011 2:54 PM, Reuben Thomas wrote:
On 11 March 2011 22:52, Dimiter "malkia" Stanev<malkia@gmail.com>  wrote:

Lua does not allow forward function declarations, and I cannot recompile
just a function (or maybe there is a trick).

Um, yes it does:

function f(x) return g(x) end
function g(x) print (x) end
f(30)
30

Or am I missing something?