lua-users home
lua-l archive

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

Roberto Ierusalimschy wrote:

> > The purpose of rewriting the function is to use value computed in the
> > first call. It works just fine.
> Just a small improvement: You do not need the table around "s". Your new
> function could be simply function foobar() return %s end
> (You only need the "trick" with a table if you were going to change "s"
> after creating the new function.)
> > Doesn't %t ref. disables it?
> The "%t" only prevents the collection of table "t" itself.

Thank you for your clarification.

Function reject.