Go to the first, previous, next, last section, table of contents.
-
`ForeignObjs' are properly deallocated when execution halts, as well
as when the garbage collector spots the `ForeignObj' as being unreferenced.
This is important if you are using a `ForeignObj' to refer to
a `COM' object or other remote resource. You want that resource to be relased
when the program terminates.
-
Files handles in the IO prelude are implemented using
`ForeignObjs', and closed when the file handle is unreferenced. This
means that if you open zillions of files then just letting go of the
file handle is enough to close it.
Go to the first, previous, next, last section, table of contents.