[squeak-dev] Units package

Balázs Kósi rebmekop at gmail.com
Thu Jun 19 14:56:16 UTC 2008


> UnitValue >> hash
>        ^value hash bitXor: unit hash
>
> and
>
> testEquality
>
>        self deny: (60 units: #seconds) hash = (60 units: #meters) hash.
>        self deny: (60 units: #seconds) = (60 units: #meters).
>        self deny: (60 units: #seconds) hash = (1 units: #minutes) hash.
>        self assert: (60 units: #seconds) = (1 units: #minutes).

Much better :)

Cheers, Balázs

ps: cc-d to Marcus Denker, because he seems to be maintainer of the package.



More information about the Squeak-dev mailing list