Next Previous Up Top Contents Index

2.5.2 How the finalization interface works

2.5.2.9 Finalization and weak tables

If an object is both registered for finalization and is weakly referred to from a weak table, finalization occurs first, with weak references being removed afterwards. That is, reachability is defined in terms of strong references only, as far as finalization is concerned. Weak references die only when an object's storage is finally reclaimed.

For more on weak tables, see Section 1.3.3 on page 4.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index