Dave Mason <
[hidden email]> writes:
Hi,
Thanks for reporting it :)
You should report bugs on
https://github.com/NicolasPetton/amber/issuesAnd checkif it works or not with the latest revision on master.
Cheer,
Nico
> Hi again,
>
> I don't see anything about reporting bugs on the wiki or web page, so, until told to do otherwise, I'll report bugs here.
>
> SequencableCollection>>copyFrom:to: is broken. Which breaks allButFirst.
>
> {1,2} allButFirst -> {nil,2}
>
> I just tried to fix it to:
> copyFrom: anIndex to: anotherIndex
> | range newCollection |
> range := anIndex to: anotherIndex.
> newCollection := self class new: range size.
> range do: [:each |
> newCollection add: (self at: each)].
> ^newCollection
>
> but when I do, I get:
> nil does not understand #selector
>
> and it doesn't seem to work any better.
>
> BTW, in the differences with other Smalltalks, you should probably mention that Strings are read-only (not a bad thing, but definitely different).
>
> ../Dave
--
Nicolas Petton
http://nicolas-petton.fr