[Newbies] ifTrue ifFalse help
Louis LaBrunda
Lou at Keystone-Software.com
Wed Apr 27 17:29:38 UTC 2011
On Wed, 27 Apr 2011 18:06:29 +0200, Mateusz Grotek
>is a character a string?
>in Smalltalk the answer is NO.
But of course in Smalltalk you can have a string with only one character in
it. But:
$a is not equal to 'a'
$a is equal to 'a' first or 'a' at: 1.
Having a Character class in Smalltalk is valuable because there are
messages one might want to send to a character that wouldn't make sense
sending to a string, even one of length 1.
Lou
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
More information about the Beginners
mailing list