Hi Christoph,

You can probably come up with a general method that creates a Set wrapper around any kind of Dictionary, like Java has it: https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html#newSetFromMap-java.util.Map-

Kind regards,
Jakob


Am Sa., 26. Aug. 2023 um 01:01 Uhr schrieb <christoph.thiede@student.hpi.uni-potsdam.de>:
> > If i could have a WeakIdentitySet...
>
> We can add it to 4.2.

Could we add it to 6.1? :-) I always use a WeakIdentityKeyDictionary or another weak dictionary as a replacement and it feels like a workaround ... At least, GNU Smalltalk and Pharo seem to have implemented that. :-)

Best,
Christoph

---
Sent from Squeak Inbox Talk

On 2010-04-12T00:56:34+02:00, leves@elte.hu wrote:

> On Sun, 11 Apr 2010, Igor Stasenko wrote:
>
> > 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...
>
> We can add it to 4.2.
>
>
> Levente
>
> >
> > 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.
> >
> >