lua-users home
lua-l archive

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


Philippe:

On Mon, Jun 3, 2019 at 1:44 AM Philippe Verdy <verdy_p@wanadoo.fr> wrote:
> Note that technicall the statement:
>   a, b = nil, nil
> is not a fetch of the variables, but assignment of different values (their old values are not accessed at all so they are already dead in the scope just before the assignment is performed. But there's currently no other standard way to delete a variable content.
> May be we need a statement like:
>   delete a, b
> which is to be considered a "fetch" access to the values currently stored in the given variables, even if these values are actually not read
> The accesses is in fact an explicit call to "close" these variables, as if we used:
...snip, snip...

Nah, we do not need that. We need that to implement a bizarre
modification to the language wich makes it, IMNSHO, less useful than
what we have today.

What's the problem with accesible=live? It can block potential
optimizations, but any half-competent programmer can do that in
multiple ways.

Francisco Olarte.