lua-users home
lua-l archive

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


Philipp Janda <siffiejoe@gmx.net> writes:
>   if _VERSION == "Lua 5.1" then
>     setfenv( f, env )
>   end

BTW, it seems much cleaner to just do:

   if setfenv then setfenv (f, env) end

-miles

-- 
永日の 澄んだ紺から 永遠へ