| Did you know ... | Search Documentation: |
| object<-unlock |
<-self.
If, after unlocking, the object has no references, it will be pushed on
the‘anser stack’, making it visible to the incremental
garbage collector.
In combination with object->lock_object,
this method may be used to disconnect an object from its environment,
handing it back to the incremental garbage collector. An example can be
found in emacs_window<-prompt, a part of
PceEmacs.
Assume we have a chain
object holding a point and we want to delete the object from the chain
without deleting the point. Direct usage of chain->delete
may destroy the point. The following code avoids this:
send(Point, lock_object, @on), send(Chain, delete, Point), get(Point, unlock, _).