[squeak-dev] The Inbox: Collections-cwp.486.mcz

Juan Vuletich (mail lists) juanlists at jvuletich.org
Tue Aug 14 13:30:50 UTC 2012


Quoting Frank Shearar <frank.shearar at gmail.com>:

> On 14 August 2012 13:29, Juan Vuletich (mail lists)
> <juanlists at jvuletich.org> wrote:
>> Hi Folks,
>>
>> For this method, #tokenish and several others, please take a look at senders
>> & implementors of #isGenerallyValidInIdentifiers and
>> #isGenerallyValidStartOfInIdentifiers in Cuis. This style eases having a
>> consistent behavior.
>
> Would you mind pasting a sample?
>
> frank
>
>> Cheers,
>> Juan Vuletich

Please visit http://www.jvuletich.org/Cuis/Index.html and download it.  
Smalltalk code is much better understood by taking advantage of its  
tools.

Cheers,
Juan Vuletich

>>
>>
>>
>> Quoting commits at source.squeak.org:
>>
>>>
>>> Item was changed:
>>>   ----- Method: Symbol>>precedence (in category 'accessing') -----
>>>   precedence
>>>         "Answer the receiver's precedence, assuming it is a valid
>>> Smalltalk
>>>         message selector or 0 otherwise.  The numbers are 1 for unary,
>>>         2 for binary and 3 for keyword selectors."
>>>
>>>         self size = 0 ifTrue: [^ 0].
>>> -       self first isLetter ifFalse: [^ 2].
>>>         self last = $: ifTrue: [^ 3].
>>> +       (self anySatisfy: [:c | c isLetter]) ifTrue: [^ 1].
>>> +       ^ 2!
>>> -       ^ 1!
>>>
>>>
>>>
>>
>>
>>
>> Cheers,
>> Juan Vuletich
>>
>>
>
>



Cheers,
Juan Vuletich



More information about the Squeak-dev mailing list