lua-users home
lua-l archive

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


1:
local function n() print(n);n();end

n()

infinite loop

2:
local n2=function() print(n2);n2();end

n2()

output: nil
error:attempt to call global 'n2' (a nil value)

Why?
--
Regards,
Linker Lin
linker.m.lin@gmail.com