‘j’ size ==> 1
$j size ==> error.
Why shouldn’t the size of a character be 1?
Sincerely,
Joe.
On 23.05.2016, at 17:25, Joseph Alotta joseph.alotta@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 -
I see. Thank you.
On May 23, 2016, at 9:52 AM, Bert Freudenberg [via Smalltalk] ml-node+s1294792n4896855h54@n4.nabble.com wrote:
On 23.05.2016, at 17:25, Joseph Alotta <[hidden email]> 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 -
Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners
smime.p7s (5K) Download Attachment
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/size-of-character-tp4896851p4896855.html To start a new topic under Squeak - Beginners, email ml-node+s1294792n107673h12@n4.nabble.com To unsubscribe from Squeak - Beginners, click here. NAML
-- View this message in context: http://forum.world.st/size-of-character-tp4896851p4896857.html Sent from the Squeak - Beginners mailing list archive at Nabble.com.
beginners@lists.squeakfoundation.org