[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.5 Weak Pointers
Bigloo may support weak pointers. In order to activate this support,
Bigloo must be configured with the finalization
enabled.
That is, the configure
script must be invoked with
the option --finalization=yes
. When the finalization and weak
pointers support is enabled, Bigloo defines the cond-expand
properties bigloo-finalizer
and bigloo-weakptr
.
Then a program may test the support with expressions such as:
(cond-expand (bigloo-weakptr <something>) (else <something-else>))
Weak pointers are pointers to objects which can be collected by the
garbage collector if they are weakly pointed to. An object is weakly
pointed to if the only pointers to it are weak pointers. Weakly
pointed objects can be collected by the garbage collector, and all the
weak pointers to such objects will cease to point to it and point to
#unspecified
instead.
- bigloo procedure: weakptr-data ptr
Returns the data object pointed to by ptr. If the object has been collected, it returns
#unspecified
.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on October 23, 2011 using texi2html 5.0.