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

Frank Shearar frank.shearar at gmail.com
Tue Aug 14 13:13:09 UTC 2012


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
>
>
>
> 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
>
>


More information about the Squeak-dev mailing list