[squeak-dev] The Trunk: Morphic-kfr.930.mcz

Tobias Pape Das.Linux at gmx.de
Sun Apr 26 12:29:54 UTC 2015


Hey Karl

On 26.04.2015, at 05:56, commits at source.squeak.org wrote:

> Karl Ramberg uploaded a new version of Morphic to project The Trunk:
> http://source.squeak.org/trunk/Morphic-kfr.930.mcz
> 
> ==================== Summary ====================
> 
> Name: Morphic-kfr.930
> Author: kfr
> Time: 26 April 2015, 7:56:20.732 am
> UUID: 719010c7-4822-d540-842d-0091f1df654d
> Ancestors: Morphic-kfr.929
> 
> Added a missing semicolon
> 
> =============== Diff against Morphic-kfr.929 ===============
> 
> Item was changed:
> ----- Method: LayoutProperties>>stringWithLayout (in category 'table defaults') -----
> stringWithLayout
> 	| defaultValues uniqueValues |
> 	defaultValues := TableLayoutProperties new.
> 	uniqueValues := self class allInstVarNames
> 		select: [:title | (self instVarNamed: title)
> 					~= (defaultValues instVarNamed: title)].
> 	^ String
> 		streamContents: [:aStream | 
> + 			aStream nextPutAll: 'TableLayout new; '.
> - 			aStream nextPutAll: 'TableLayout new '.

can you explain why this is necessary?
Why should subsequent messages go to the class instead of the instance?

Best regards
	-Tobias


> 			uniqueValues
> 				do: [:title | aStream nextPutAll: title;
> 						 nextPut: $:;
> 						 space;
> 						
> 						print: (self instVarNamed: title).
> 						(title = uniqueValues last)
> 						ifTrue:[ aStream nextPut:$.]
> 						ifFalse:[ aStream nextPut: $;; cr]
> 						]]!
> 
> 



More information about the Squeak-dev mailing list