Identity vs equality (was Re: [Newbies] Assignment)
nicolas cellier
ncellier at ifrance.com
Mon Aug 13 12:52:48 UTC 2007
nicolas cellier a écrit :
>
> a := 2 raisedTo: 80.
> b := a asDouble.
> c := a+1.
> self should: [(a = b) & (b = c) ==> (a = c)].
>
Sorry, I'm mixing the dialects... Read:
a := 2 raisedTo: 80.
b := a asFloat.
c := a+1.
self should: [(a = b) & (b = c) ==> (a = c)].
Nicoals
More information about the Squeak-dev
mailing list
|