32
edits
(Move the event handler discussion to a new page) |
m (→Event Handlers) |
||
Line 30: | Line 30: | ||
Event handlers are a little trickier. In the process of "binding" a handler to an event target, an "implied reference" is created between the event target and the event handler. Thus, in the current implementation, a bound event handler does not need to be rooted by callers. Therefore, a case could be made that a bound event handler is a "borrowed reference" and requires no explicit cleanup. | Event handlers are a little trickier. In the process of "binding" a handler to an event target, an "implied reference" is created between the event target and the event handler. Thus, in the current implementation, a bound event handler does not need to be rooted by callers. Therefore, a case could be made that a bound event handler is a "borrowed reference" and requires no explicit cleanup. | ||
Either way, event handling is a subject in its own right (see [[Language | Either way, event handling is a subject in its own right (see [[Language agnostic event handling]]), and more analysis is required. However, the memory management issues for CompileScript etc are not related to event handlers, so can be resolved independently. That resolution then may, or may not, be applied to event handlers. | ||
==Proposal== | ==Proposal== |
edits