Compatibility methods (was: Re: [squeak-dev] The Trunk: System-ul.322.mcz)

Levente Uzonyi leves at elte.hu
Wed Apr 28 17:53:00 UTC 2010


On Wed, 28 Apr 2010, Bert Freudenberg wrote:

> Wouldn't it be better to add compatibility methods such as this to a separate package, that could later be removed (or installed manually if one needs compatibility)?

Would it be a package for all compatibility methods or just for the
methods of SystemDictionary and SmalltalkImage?


Levente

>
> - Bert -
>
> On 28.04.2010, at 10:00, commits at source.squeak.org wrote:
>>
>> Levente Uzonyi uploaded a new version of System to project The Trunk:
>> http://source.squeak.org/trunk/System-ul.322.mcz
>>
>> ==================== Summary ====================
>>
>> Name: System-ul.322
>> Author: ul
>> Time: 28 April 2010, 11:48:58.524 am
>> UUID: 7f03b95b-18a3-3544-b79c-58335116cbe1
>> Ancestors: System-jcg.321
>>
>> - added two missing compatibility methods
>>
>> =============== Diff against System-jcg.321 ===============
>>
>> Item was added:
>> + ----- Method: SmalltalkImage>>keyAtValue: (in category 'dictionary access') -----
>> + keyAtValue: value
>> + 	"Answer the key that is the external name for the argument, value. If
>> + 	there is none, answer nil."
>> +
>> + 	self deprecated: 'Use Smalltalk globals'.
>> + 	^globals keyAtValue: value
>> + !
>>
>> Item was added:
>> + ----- Method: SystemDictionary>>hasSpecialSelector:ifTrueSetByte: (in category 'compatibility') -----
>> + hasSpecialSelector: aLiteral ifTrueSetByte: aBlock
>> +
>> + 	self deprecated: 'Use Smalltalk'.
>> + 	^Smalltalk hasSpecialSelector: aLiteral ifTrueSetByte: aBlock!
>>
>>
>
>
>
>
>



More information about the Squeak-dev mailing list