[Cuis-dev] [IMPL] My OrderedWeakIdentityKeyDictionary is #green

rabbit rabbit at callistohouse.org
Tue Mar 14 07:43:05 PDT 2023


Here is my new OrderedWeakIdentityKeyDictionary and the associated OrderedWeakIdentityKeyDictionaryTest. The single test passes #green.

🐰

On 3/13/23 13:50, rabbit via Cuis-dev wrote:

> I made a little progress implementing a #grow method, but it's bugging out on access after grow,.. sigh. Your thoughts?
>
>> | set |
>> set := OrderedWeakIdentityKeyDictionary new.
>> 1 to: 10 do: [:i |
>> self assert: ((set findElementOrNil: (set keyAtValue: (set add: (i -> Object new)) value)) > 0)].
>
> grazie,
> 🐰
>
> On 3/13/23 13:11, rabbit via Cuis-dev wrote:
>
>> Hey everyone, I'm trying to port my OrderedWeakKeyDictionary from Squeak's HashedCollection to Cuis' Set based Dictionary superclass. I've got a growTo: but Set>>#grow doesn't call it.
>>
>>> | set |
>>> set := OrderedWeakIdentityKeyDictionary new.
>>> 1 to: 10 do: [:i |
>>> self assert: ((set findElementOrNil: (set add: (i -> Object new))) >
>>
>> grazie alla tua provvidenza,
>> rabbit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230314/809d4501/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OrderedWeakIdentityKeyDictionaryTest.st
Type: application/vnd.sailingtracker.track
Size: 641 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230314/809d4501/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OrderedWeakIdentityKeyDictionary.st
Type: application/vnd.sailingtracker.track
Size: 2202 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230314/809d4501/attachment-0003.bin>


More information about the Cuis-dev mailing list