Nov. 13, 2010
2:41 p.m.
Comment #11 on issue 3247 by stephane.ducasse: Remodel Text Constants http://code.google.com/p/pharo/issues/detail?id=3247 Ben when a class uses a Pool you can use the key of the variable instead of the at: expression For example: text: aText "Answer an instance of me such that the text displayed is aText according to the system's default text style." ^self new setText: aText textStyle: DefaultTextStyle copy offset: 0 @ 0 is better than text: aText "Answer an instance of me such that the text displayed is aText according to the system's default text style." ^self new setText: aText textStyle: (SharedDictionary at: #DefaultTextStyle) copy offset: 0 @ 0