>
> Ok I'm curious to know then.

Here is a little trace from this example method:

toDoOutsideTemp
| temp collection |
collection := OrderedCollection new.
1 to: 5 do: [ :index |
temp := index.
collection add: [ temp ] ]

Trace is start,stop position of the highlight for each 'step over'.

Whilst the numbers are hard to visualise, below you can see how they
slightly diverge.
Left Pharo  Right  Squeak

50, 73     71, 73       diff
71, 73     71, 73
50, 73     50, 73
108, 115   79, 121      diff
79, 121    79, 121
108, 115   108, 115
132, 144   132, 144
147, 146   146, 146     (diff negative size means no highlight)
146, 146   146, 146
79, 121    79, 121
108, 115   108, 115
132, 144   132, 144
147, 146   146, 146
146, 146   146, 146
79, 121    79, 121
108, 115   108, 115
132, 144   132, 144
147, 146   146, 146
146, 146   146, 146
79, 121    79, 121
108, 115   108, 115
etc...

For example the first difference is because Pharo shows the whole assignment
of the first line as the first send, even though it is not.

The second difference is that Pharo shows the assignment inside the block as
the first highlight of the loop even though the to:do should be
highlighted....but both Pharo & Squeak get the to:do: wrong when they choose
to show it.

hope you get the idea...

Mike

Reply via email to