[Pkg] SystemEditor: SystemEditor-kph.104.mcz

squeaksource-noreply at iam.unibe.ch squeaksource-noreply at iam.unibe.ch
Tue Jul 1 00:56:28 UTC 2008


A new version of SystemEditor was added to project SystemEditor:
http://www.squeaksource.com/SystemEditor/SystemEditor-kph.104.mcz

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

Name: SystemEditor-kph.104
Author: kph
Time: 1 July 2008, 1:56:19 am
UUID: a2653c64-f0fe-4f85-b67b-0ff257ec9c98
Ancestors: SystemEditor-mtf.103

raise errors if migration arrays contain nil

=============== Diff against SystemEditor-mtf.103 ===============

Item was changed:
  ----- Method: InstanceMigrator>>migrateFrom:to: (in category 'migrating') -----
  migrateFrom: oStream to: dStream
  	self instances do:
  		[:ea |
+ 		self assert: ea notNil.
+  
  		oStream nextPut: ea.
  		dStream nextPut: (self migrate: ea)]!

Item was changed:
  ----- Method: InstanceMigrator>>migrate: (in category 'migrating') -----
  migrate: oldInstance 
  	| newInstance |
+ 	
+ 	oldInstance ifNil: [ self error: 'shouldnt be nil' ].
+ 
+  	newInstance := destination edInstanceBasedOn: oldInstance.
- 	newInstance := destination edInstanceBasedOn: oldInstance.
  	1 to: instSize do: 
  		[:offset | 
  		(map at: offset) > 0 ifTrue: 
  			[newInstance 
  				instVarAt: offset
  				put: (oldInstance instVarAt: (map at: offset))]].
  	destination isVariable ifTrue: 
  		[1 to: oldInstance basicSize do: 
  			[:offset | newInstance basicAt: offset put: (oldInstance basicAt: offset)]].
+ 
+ 	newInstance ifNil: [ self error: 'shouldnt be nil' ].
+ 
  	^newInstance!



More information about the Packages mailing list