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).


(I'm lua newbie really)

On 3/11/2011 2:54 PM, Reuben Thomas wrote:
On 11 March 2011 22:52, Dimiter "malkia" Stanev<>  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

Or am I missing something?