[Prev][Next][Index][Thread]

Re: Destructors



Barry Margolin wrote:
> Presumably, the application knows precisely when it has
> removed the window from operation -- they're not expected to stay on the
> screen and just disappear spontaneously when GC notices them.

Maybe.  Some GUI models allow you to temporarily remove a window from
the screen, for example when it is when it is iconified or minimized,
and then put it back later.  In this case, you want the window resources
to go away when: a) the windows has been removed from the screen, and b)
the resources are no longer reachable, so there is no possibility that
the window can be put back.



Follow-Ups: References: