I know I can use reg.finalizer, in initialize or on the object, but what do you think about making finalizers more explicit, i.e. having a special finalize method?
It should not be too hard with reg.finalizer. We just check if there is a finalize method at object creation, and if there is, we call reg.finalizer on it.
I know I can use
reg.finalizer
, ininitialize
or on the object, but what do you think about making finalizers more explicit, i.e. having a specialfinalize
method?It should not be too hard with
reg.finalizer
. We just check if there is afinalize
method at object creation, and if there is, we callreg.finalizer
on it.