The Trunk: Balloon-dtl.20.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Balloon-dtl.20.mcz

commits-2
David T. Lewis uploaded a new version of Balloon to project The Trunk:
http://source.squeak.org/trunk/Balloon-dtl.20.mcz

==================== Summary ====================

Name: Balloon-dtl.20
Author: dtl
Time: 22 February 2013, 11:42:35.522 am
UUID: b7a34c82-3dbc-458d-941f-fb76256b88c1
Ancestors: Balloon-egp.19

Check for sending ShortRunArray class>>swapRuns and ShortIntegerArray class>>swapShortObjects is needed only at image startup time, so use startUp: resuming rather than startUp. Categorize in system startup.

=============== Diff against Balloon-egp.19 ===============

Item was removed:
- ----- Method: ShortIntegerArray class>>startUp (in category 'class initialization') -----
- startUp
- "Check if the word order has changed from the last save"
- ((LastSaveOrder at: 1) = 42 and:[(LastSaveOrder at: 2) = 13])
- ifTrue:[^self]. "Okay"
- ((LastSaveOrder at: 2) = 42 and:[(LastSaveOrder at: 1) = 13])
- ifTrue:[^self swapShortObjects]. "Reverse guys"
- ^self error:'This must never happen'!

Item was added:
+ ----- Method: ShortIntegerArray class>>startUp: (in category 'system startup') -----
+ startUp: resuming
+ "Check if the word order has changed from the last save"
+ resuming ifFalse: [ ^ self ].
+ ((LastSaveOrder at: 1) = 42 and:[(LastSaveOrder at: 2) = 13])
+ ifTrue:[^self]. "Okay"
+ ((LastSaveOrder at: 2) = 42 and:[(LastSaveOrder at: 1) = 13])
+ ifTrue:[^self swapShortObjects]. "Reverse guys"
+ ^self error:'This must never happen'!

Item was removed:
- ----- Method: ShortRunArray class>>startUp (in category 'class initialization') -----
- startUp
- "Check if the word order has changed from the last save"
- ((LastSaveOrder valueAtRun: 1) = 42 and:[(LastSaveOrder lengthAtRun: 1) = 3])
- ifTrue:[^self]. "Okay"
- ((LastSaveOrder lengthAtRun: 1) = 42 and:[(LastSaveOrder valueAtRun: 1) = 3])
- ifTrue:[^self swapRuns]. "Reverse guys"
- ^self error:'This must never happen'!

Item was added:
+ ----- Method: ShortRunArray class>>startUp: (in category 'system startup') -----
+ startUp: resuming
+ "Check if the word order has changed from the last save"
+ resuming ifFalse: [ ^ self ].
+ ((LastSaveOrder valueAtRun: 1) = 42 and:[(LastSaveOrder lengthAtRun: 1) = 3])
+ ifTrue:[^self]. "Okay"
+ ((LastSaveOrder lengthAtRun: 1) = 42 and:[(LastSaveOrder valueAtRun: 1) = 3])
+ ifTrue:[^self swapRuns]. "Reverse guys"
+ ^self error:'This must never happen'!