lua-users home
lua-l archive

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

>Sorry, for being dumb, but the following still prints nil:
>function equals()
>	return DATE
>f = loadstring("return function() return equals() end")

That's because equals still has the old env. setfenv(x,f) does not affect
the env of equals. I'm sorry, using setfenv can defy intutition, as Wim has
described in .