On Fri, Jun 24, 2011 at 08:17, Gwenael Casaccio <[email protected]> wrote: > Hi, > > I've made a small change in OrderedCollection in growBy:shift: > I use the primitive VMpr_OrderedCollection_replaceFromToWithStartingAt. > I guess it should be possible to tweak again a bit the behavior:
That's very nice, you could also implement all of #replaceFrom:to:with:startingAt: with the primitive instead? The primitive would be #primReplaceFrom:to:with:startingAt:. Then you don't need a change in #growBy:shift:, I think. > In addLast or addFirst if we have any free rooms but first is <= 1 or last >>= n we could move instead of allocating a new collection. Is it really helpful? Paolo _______________________________________________ help-smalltalk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-smalltalk
