[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question on <close>
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 16 May 2020 11:51:53 -0300
> When a variable holds a value which has a metatable where __close is not
> nil then when the variable goes out of scope that value is closed
That would make it impossible to write a function to open a file.
(When the function returns, the file will be closed.)
-- Roberto
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org