[squeak-dev] #collect: on strings

Damien Cassou damien.cassou at gmail.com
Wed Jun 25 07:13:43 UTC 2008


Hi,

is it normal that the following code fails:

'something' collect: [ :letter | letter isVowel ].

It fails because #collect: creates a new string and tries to put
booleans in it. However, I don't think this is the desired behavior.

-- 
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)



More information about the Squeak-dev mailing list