Question about arrays.
Francisco A. Lizarralde
squeak-dev at lists.squeakfoundation.org
Sat Sep 7 12:28:56 UTC 2002
Thank you very much, and Thanks to Ned and Ken too.
Best Regards to all.
Francisco.
Bob Arning wrote:
Using #() can create arrays of literals only - Floats, Integers, Strings
and Symbols. The Fractions you see are the result of a messages send
(the message #/ is sent to 3 with 4 as the argument). If you use the
brace constructor, you'll get what you wanted
>
> a _ {3/4 . 2/3}.
> a collect: [ :each | each class] ====> #(Fraction Fraction)
>
> Cheers,
> Bob
>
> P.S. your mailbox is disabled
More information about the Squeak-dev
mailing list
|