lua-users home
lua-l archive

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


Reuben Thomas wrote:
> 
> I'm really confused: what's wrong with
> 
> > function decl(name)\
> setglobal(name, function () return name .. "!" end)\
> end

It will not work with Lua 4.0 ;-)  (cannot access a variable in outer scope)

Ciao, ET.