[Cuis-dev] [DEFECT] #copyFrom:count: for OrderedCollections
Gerald Klix
cuis.01 at klix.ch
Thu Feb 1 12:43:29 PST 2024
Hi all, Hi Juan,
I found a glitch in #copyFrom:count.
IHMO both expression should work:
--- snip ---
1 to: 10 :: copyFrom: 1 count: 3.
1 to: 10 :: asOrderedCollection copyFrom: 1 count: 3.
--- snap ---
The later creates an empty OrderedCollection and fails.
I attached a change set, that replaces sends of #new: with
sends of #sizeOf: in various methods,
although some of these methods are special cased
in OrderedCollection.
Best Regards,
Gerald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6203-UseOfSizeForCopy-GeraldKlix-2024Feb01-21h27m-KLG.001.cs.st
Type: application/vnd.sailingtracker.track
Size: 1940 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240201/31082a64/attachment.st>
More information about the Cuis-dev
mailing list