[squeak-dev] The Trunk: Kernel-nice.402.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Feb 16 09:40:34 UTC 2010


2010/2/16 Michael Haupt <mhaupt at gmail.com>:
> Hi,
>
> On Tue, Feb 16, 2010 at 10:28 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> Jerome mentioned this is an ANSI method, so we should follow the standard. What does it say?
>
> it says "The least significant bit of the receiver is designated as
> bit 1, with indices increasing to the left.", and I think that's a bad
> example of domain implementation. Yuck. But who am I to question a
> STANDARD? ;-)
>
> Best,
>

Before I read your mail, I was precisely thinking of this extension for fun:

(0 bitAt: -1 put: 1) = (1/2).
(0 bitAt: -2 put: 1) = (1/4).

but sure, 1 based is spoiling this game...

> Michael
>
>



More information about the Squeak-dev mailing list