[squeak-dev] The Trunk: Nebraska-mt.59.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Oct 14 12:05:03 UTC 2020


Marcel Taeumel uploaded a new version of Nebraska to project The Trunk:
http://source.squeak.org/trunk/Nebraska-mt.59.mcz

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

Name: Nebraska-mt.59
Author: mt
Time: 14 October 2020, 2:05:01.937569 pm
UUID: b038a014-2599-1f46-a713-c3650ab58fa6
Ancestors: Nebraska-mt.58

Rename #doWithIndex: to #withIndexDo:. See http://forum.world.st/The-Inbox-60Deprecated-ct-80-mcz-td5120706.html

=============== Diff against Nebraska-mt.58 ===============

Item was changed:
  ----- Method: MatrixTransform2x3 class>>fromRemoteCanvasEncoding: (in category '*nebraska-instance creation') -----
  fromRemoteCanvasEncoding: encoded
  	"DisplayTransform fromRemoteCanvasEncoding:  'Matrix,1065353216,0,1137541120,0,1065353216,1131610112,'"
  	| nums transform encodedNums |
  	"split the numbers up"
  	encodedNums := encoded findTokens: ','.
  
  	"remove the initial 'Matrix' specification"
  	encodedNums := encodedNums asOrderedCollection.
  	encodedNums removeFirst.
  
  	"parse the numbers"
  	nums := encodedNums collect: [ :enum |
  		Integer readFromString: enum ].
  
  	"create an instance"
  	transform := self new.
  
  	"plug in the numbers"
+ 	nums withIndexDo: [ :num :i |
- 	nums doWithIndex: [ :num :i |
  		transform basicAt: i put: num ].
  
  	^transform!



More information about the Squeak-dev mailing list