Next: WeakKeyIdentityDictionary, Previous: WeakIdentitySet, Up: Base classes [Index]
I am similar to a plain Dictionary, but my keys are stored in a weak array; I track which of them are garbage collected and, as soon as I encounter one of them, I swiftly remove all the associations for the garbage collected keys
• WeakKeyDictionary class-hacks: | (class) | |
• WeakKeyDictionary-accessing: | (instance) |