lua-users home
lua-l archive

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


On Sat, Jul 21, 2018 at 4:55 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> >From the land of PEP: deterministic cleanup for iterators
>>
>>   https://www.python.org/dev/peps/pep-0533/
>>
>> Can the prospective scoped locals be applied to this use case?
>
> No. The proposed 'with' clause also does not seem to apply :-)

     do
       local f, s, var = explist
       local <mark> s = s -- added!
       while true do
         ...

Am I missing something?

-- 
Patrick Donnelly