[squeak-dev] WeakSet but no WeakIdentitySet?
Igor Stasenko
siguctua at gmail.com
Sun Apr 11 15:57:57 UTC 2010
Hello,
i need to keep a bunch of CompiledMethods in WeakSet,
but i am a bit afraid, that it wont work as i want to, because of
CompiledMethod>>= implementation,
because a code, which i currently writing doesn't changing a method's
bytecode, but changing its trailer instead,
and so, this could lead to undesirable effects..
If i could have a WeakIdentitySet...
Meanwhile, i think i have nothing else, but just use a degenerate
WeakIdentityKeyDictionary , with methods in keys and nils in values.
:(
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|