54 |
disappear when either the key or the value are not used anywhere else |
disappear when either the key or the value are not used anywhere else |
55 |
anymore. |
anymore. |
56 |
|
|
57 |
Property lists offer the same kind of functionality as weak key hashes |
Object properties offer the same kind of functionality as weak key |
58 |
in many situations. (@pxref{Property Lists}) |
hashes in many situations. (@pxref{Object Properties}) |
59 |
|
|
60 |
Here's an example (a little bit strained perhaps, but one of the |
Here's an example (a little bit strained perhaps, but one of the |
61 |
examples is actually used in Guile): |
examples is actually used in Guile): |
91 |
@deffnx {Scheme Procedure} make-weak-value-hash-table size |
@deffnx {Scheme Procedure} make-weak-value-hash-table size |
92 |
@deffnx {Scheme Procedure} make-doubly-weak-hash-table size |
@deffnx {Scheme Procedure} make-doubly-weak-hash-table size |
93 |
@deffnx {C Function} scm_make_weak_key_hash_table (size) |
@deffnx {C Function} scm_make_weak_key_hash_table (size) |
94 |
|
@deffnx {C Function} scm_make_weak_value_hash_table (size) |
95 |
|
@deffnx {C Function} scm_make_doubly_weak_hash_table (size) |
96 |
Return a weak hash table with @var{size} buckets. As with any |
Return a weak hash table with @var{size} buckets. As with any |
97 |
hash table, choosing a good size for the table requires some |
hash table, choosing a good size for the table requires some |
98 |
caution. |
caution. |