The Trunk: MorphicExtras-ul.202.mcz

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

The Trunk: MorphicExtras-ul.202.mcz

commits-2
Levente Uzonyi uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-ul.202.mcz

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

Name: MorphicExtras-ul.202
Author: ul
Time: 27 February 2017, 2:20:59.716292 am
UUID: 5f9ce28c-9742-4cf9-9907-b516125debb8
Ancestors: MorphicExtras-cmm.201

- omit ifAbsent from #index* sends when the default value, 0 would used

=============== Diff against MorphicExtras-cmm.201 ===============

Item was changed:
  ----- Method: BookMorph>>pageNumberOf: (in category 'accessing') -----
  pageNumberOf: aMorph
  "Modified so that if the page IS in memory, other pages don't have to be brought in.  (This method may wrongly say a page is not here if pages has a tombstone (MorphObjectOut) and that tombstone would resolve to an object already in this image.  This is an unlikely case, and callers just have to tolerate it.)"
 
+ ^ pages identityIndexOf: aMorph
- ^ pages identityIndexOf: aMorph ifAbsent: [0]
  !

Item was changed:
  ----- Method: CommandHistory>>historyIndexOfLastCommand (in category 'command history') -----
  historyIndexOfLastCommand
  "Answer which position of the CommandHistory list is occupied by the LastCommand"
 
+ ^ history indexOf: lastCommand!
- ^ history indexOf: lastCommand ifAbsent: [0]!