lua-users home
lua-l archive

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


Philippe:

On Sat, Jun 1, 2019 at 4:51 AM Philippe Verdy <verdy_p@wanadoo.fr> wrote:
> You don't need to "clear" the locals that hold the parameter values; it's enough to change their value, making the old value then inaccessible and is garbage-collectable at any time after this time, before the function returns, because it is no longer accessible at all (unless you've aliased that value by copying into another variable or data structure which is still accessible).

Oh, my apologies. You are right, I assumed a moderately knowledgeable
audience when I wrote that.

Francisco Olarte.