[Cuis-dev] [DEFECT] #copyFrom:count: for OrderedCollections

Juan Vuletich juan at cuis.st
Tue Feb 6 12:05:18 PST 2024


On 2/6/2024 1:47 PM, Gerald Klix via Cuis-dev wrote:
> Some 5 minutes before I saw Juan's reply, I just used that semantics.
> I don't want run my code, but I did this:
>
> bear at speedy ~/s/c/Environments> find -iname '*.st' | xargs grep 'new: 
> ' | grep Order | wc -l
> grep: ./Haver-UserFiles/FileOuts/TheWorldMenu: No such file or directory
> grep: class-haversPreferencesMenu.st: No such file or directory
> 42
>
> (Please disregard the dangling symlinks)
>
> And no 42 is not a fake.!
>
>
> For Cuis it is not that bad:
>
> bear at speedy ~/g/C/Cuis-Smalltalk-Dev (master)> find -iname '*.st' | 
> xargs grep 'new: ' | grep Order

> ./Packages/BaseImageTests.pck.st:    things := OrderedCollection new: 
> self iterationsBeforeTimeout.
> ./Packages/Features/YAXO.pck.st:    scope := OrderedCollection new: 20.
> ./Packages/Features/System-Locales.pck.st:    table := 
> OrderedCollection new: 200.
> ./Packages/Features/Sound.pck.st:    r _ OrderedCollection new: 
> aNoteList size.
> ./Packages/Features/Sound.pck.st:    recordedBuffers _ 
> OrderedCollection new: 100.
> ./Packages/Features/Compression.pck.st:    tableStack _ 
> OrderedCollection new: 10. "Should be more than enough"
> ./Packages/System/ExtendedClipboard.pck.st:    availableFormats _ 
> OrderedCollection new: 10.
> ./Packages/System/ExtendedClipboard.pck.st:    availableFormats _ 
> OrderedCollection new: 10.
> ./Packages/System/ExtendedClipboard.pck.st:    availableFormats _ 
> OrderedCollection new: 10.
> ./Packages/System/FFI.pck.st:    sorted := OrderedCollection new: 
> unsorted size.
> ./Packages/System/Collections-CompactArrays.pck.st:    LastSaveOrder _ 
> self new: 2.

All those are already fixed.

> ./CompatibilityPackages/SqueakCompatibility.pck.st:    entries _ 
> OrderedCollection new: 200.
> ./CompatibilityPackages/SqueakCompatibility.pck.st:    result _ 
> OrderedCollection new: 100.
>
> Done before any updates.
> We should definitely add the old behavior in the Squeak compatibility 
> module.
>

Yep. Done that.

> HTH,
>
> Gerald
>
>

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list