[squeak-dev] The Inbox: Kernel-cmm.1228.mcz

K K Subbu kksubbu.ml at gmail.com
Wed May 8 16:10:42 UTC 2019


This can lead to an explosion in methods. How about catching the pattern 
in DNU and returning true for isObject and false for any selector 
matching 'is[A-Z]*' or the more specific 'is<Class>'?

Regards .. Subbu

On 08/05/19 11:27 AM, Marcel Taeumel wrote:
> +1 for consistency :-)
> 
> We should add more tests for isNumber, isCollection, isBoolean ... to 
> document the intended use.
> 
> Best,
> Marcel
>>
>> Am 08.05.2019 01:36:16 schrieb commits at source.squeak.org 
>> <commits at source.squeak.org>:
>>
>> Chris Muller uploaded a new version of Kernel to project The Inbox:
>> http://source.squeak.org/inbox/Kernel-cmm.1228.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Kernel-cmm.1228
>> Author: cmm
>> Time: 7 May 2019, 6:36:01.955169 pm
>> UUID: 2fad2a41-3aec-4e22-b9e8-cce50f7f6808
>> Ancestors: Kernel-nice.1227
>>
>> Allow identification of instances of Boolean via #isBoolean.
>>
>> =============== Diff against Kernel-nice.1227 ===============
>>
>> Item was added:
>> + ----- Method: Boolean>>isBoolean (in category 'testing') -----
>> + isBoolean
>> + ^ true!
>>
>> Item was added:
>> + ----- Method: Object>>isBoolean (in category 'testing') -----
>> + isBoolean
>> + ^ false!
>>
>>
> 
> 



More information about the Squeak-dev mailing list