[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Forward function declarations - relocal command
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Mon, 19 Nov 2012 05:08:05 +0300
Another suggestion is "forward" keyword (it can be used more then once):
forward f
local function g() print('G', f()) end
forward f
local function h() print('H', f()) end
local function f() return 'F' end