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.