[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is it an optimization?
- From: Max Ischenko <max@...>
- Date: Wed, 14 Nov 2001 09:28:54 +0200
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.