The Trunk: Graphics-ul.369.mcz

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

The Trunk: Graphics-ul.369.mcz

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

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

Name: Graphics-ul.369
Author: ul
Time: 27 February 2017, 2:11:11.506532 am
UUID: 87cd9b87-4712-42c0-8aac-0c1095700248
Ancestors: Graphics-bf.368

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

=============== Diff against Graphics-bf.368 ===============

Item was changed:
  ----- Method: ColorForm>>indexOfColor: (in category 'color manipulation') -----
  indexOfColor: aColor
  "Return the index of aColor in my color array"
 
  self ensureColorArrayExists.
+ ^ colors indexOf: aColor!
- ^ colors indexOf: aColor ifAbsent: [0]!