[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (alpha) now available
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Thu, 20 Jun 2019 16:06:16 -0300
In Python the equivalent metamethod is called __exit__
(There is also a corresponding method called __enter__, which is called at the start of the scope)
>Actually it would be nice if someone could come up with a word that
>coul
>express the real concept clearly. For example: "at_scope_end" (or and
>"__at_scope_end" as a metamethod. Of course those are UGLY.
>
>Maybe "atend"? It's more explicit than "toclose" since actually
>describes that something happens when execution flow reaches the "end"
>keyword. "__atend" is not bad as a metamethod.