[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [NoW] Once more about to-be-closed variables
- From: Patrick Donnelly <batrick@...>
- Date: Tue, 2 Jul 2019 16:05:42 -0700
Why an error must be raised if a value doesn't have the metamethod?
I do wonder why not allow functions to be assigned and called when the local goes out of scope. It does make some kinds of error handling much simpler. It also is consistent with other metamethods like __index which may be another table or a function.