[gclist] Finalization and object orientation.
27 Mar 1997 21:11:43 -0500
Scott Meyer <firstname.lastname@example.org> writes:
> as the cleanup-of-last-resort. So, for example, Smalltalk
> will close a window if the corresponding object gets GC'd
This example is a bad one: closing a window is an action that has (usually)
quite visible effects. It's not like GC which is just supposed to provide the
programmer with the illusion of infinite (memory) resources.
This is not to say that its finalizer should not close the window, tho.