|
From: | Nicolas Petton |
Subject: | [Help-smalltalk] [bug] Inlined blocks (Number>>to:do:) |
Date: | Sun, 24 Jan 2010 07:11:04 -0700 |
Project: GNU Smalltalk Version: <none> Component: Base classes Category: bug reports Priority: normal Assigned to: Unassigned Reported by: nico Updated by: nico Status: active The following code doesn't work as expected: | c | c := OrderedCollection new. 1 to: 10 do: [:each | c add: [each]]. c collect: [:each | each value] -> OrderedCollection (11 11 11 11 11 11 11 11 11 11 11) It works fine using (1 to: 10) do: [...]
[Prev in Thread] | Current Thread | [Next in Thread] |