2009/12/24  <[email protected]>:
> Em 23/12/2009 22:51, Nicolas Cellier <[email protected]> 
> escreveu:
>
>>  2009/12/24 :
>> > Igor,
>> > Sometimes a fallacy can be written by clever people, by accident.
>> > If you pay attention to the line:
>> > (size := self size) = otherCollection size ifFalse: [^false].
>> > I all Smalltalks [Except Pharo to  what I wrote a comment in issue
>> > 1637   http://code.google.com/p/pharo/issues/detail?id=1637]  this
>> > would  return false if  self be  not Collection  or otheCollection
>> > isKindOf: Collection not.
>> > This  happens  because in  these  Smalltalks Object>>size  returns
>> > zero.
>> >
>>  Not so sure.  Try 1.0 size,  then 1.0 at: 1.0 size in you favourite
>> dialect.
>
> Nicolas,
>
> In Squeak 3.10.2-7179:
>
> 1.0 size -> 2 "OK I'm surprised here"
>
> 1.0 at: 1.0 size -> 0 "this will not work anymore in Pharo because
> indices have to be Integer in Pharo right now"
>

I mean in VW, size would be > 0 but #at: would raise a debugger.

Nicolas

> HTH
>
> --
> Cesar Rabak
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to