[squeak-dev] Re: Please Add To Trunk

Bert Freudenberg bert at freudenbergs.de
Thu Oct 28 07:20:00 UTC 2010


On 27.10.2010, at 23:43, Andreas Raab wrote:

> On 10/27/2010 2:09 PM, Eliot Miranda wrote:
>>    In Pharo the preference accessor is called
>>    #allowUnderscoreAsAssignment in Squeak it's
>>    #prefAllowUnderscoreAssignments. The OB code uses the Pharo version,
>>    since OB is developed for Pharo. So there are three choices:
>>    - add Compiler-tfel.175 to the Trunk
>>    - rename the preference accessor in Squeak to
>>    #allowUnderscoreAsAssignment
>>    - add a Squeak compatibility package for OB which implements this
>>    method as in Compiler-tfel.175
>> 
>> 
>> Off the top of my head, only the latter makes sense.  There are no
>> senders of allowUnderscoreAsAssignment in the base Compiler package so
>> one would be tempted to delete it.  Why can't it be an extension in OB?
> 
> Why not rename it? There is little reason to insist that the preference accessor must be called exactly this or that.
> 
> Cheers,
>  - Andreas

+1

Just use the Pharo selector. No need to differ unless there is a good reason.

- Bert -





More information about the Squeak-dev mailing list