[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Using Lua to replace C
- From: "Dimiter \"malkia\" Stanev" <malkia@...>
- Date: Fri, 11 Mar 2011 15:11:03 -0800
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<firstname.lastname@example.org> 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?