lua-users home
lua-l archive

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


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?

-- 
http://rrt.sc3d.org