[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [NoW] Once more about to-be-closed variables
- From: Andrew Gierth <andrew@...>
- Date: Wed, 03 Jul 2019 03:28:03 +0100
>>>>> "Patrick" == Patrick Donnelly <firstname.lastname@example.org> writes:
>> Why an error must be raised if a value doesn't have the metamethod?
Patrick> I do wonder why not allow functions to be assigned and called
Patrick> when the local goes out of scope.
This feature existed when *toclose was first added, and was then
explicitly removed. One problem is that it lets lua code catch errors in
ways that a sandbox can't control.