[Newbies] size of character

Bert Freudenberg bert at freudenbergs.de
Mon May 23 15:29:13 UTC 2016


On 23.05.2016, at 17:25, Joseph Alotta <joseph.alotta at gmail.com> wrote:
> 
> ‘j’ size ==>  1
> 
> $j size ==> error.
> 
> Why shouldn’t the size of a character be 1?

Because it’s not a collection: #size is part of the collection protocol, but it doesn’t make sense to send #at: to a character.

- Bert -



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4207 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20160523/d0473ec8/smime.bin


More information about the Beginners mailing list