Roberto Ierusalimschy 4ace93ca65 No more to-be-closed functions
To-be-closed variables must contain objects with '__toclose'
metamethods (or nil). Functions were removed for several reasons:

* Functions interact badly with sandboxes. If a sandbox raises
an error to interrupt a script, a to-be-closed function still
can hijack control and continue running arbitrary sandboxed code.

* Functions interact badly with coroutines. If a coroutine yields
and is never resumed again, its to-be-closed functions will never
run. To-be-closed objects, on the other hand, will still be closed,
provided they have appropriate finalizers.

* If you really need a function, it is easy to create a dummy
object to run that function in its '__toclose' metamethod.

This comit also adds closing of variables in case of panic.
2019-01-04 13:09:47 -02:00
2019-01-04 13:09:47 -02:00
2019-01-04 13:09:47 -02:00
2019-01-01 12:14:56 -02:00
2018-10-25 15:30:15 -03:00
2018-12-28 15:42:34 -02:00
2018-12-28 15:42:34 -02:00
2019-01-04 13:09:47 -02:00
2019-01-04 13:09:47 -02:00
2019-01-01 12:14:56 -02:00
2018-11-01 13:21:00 -03:00
2018-10-23 12:58:38 -03:00
2018-11-01 13:21:00 -03:00
2018-11-22 13:56:04 -02:00
2019-01-01 12:14:56 -02:00
2019-01-01 12:14:56 -02:00
2018-12-27 14:19:53 -02:00
2019-01-04 13:09:47 -02:00
2019-01-01 12:14:56 -02:00
2018-07-12 15:56:44 -03:00
Description
No description provided
13 MiB
Languages
C 66.7%
Lua 32.6%
Makefile 0.6%
Shell 0.1%