[Newbies] Re: ifTrue ifFalse help

Mateusz Grotek unoduetre at poczta.onet.pl
Wed Apr 27 16:06:29 UTC 2011


calcrisk33 pisze:
> bool = $a worked like a charm!  So what exactly does $ do?  I'm more familiar
> with Java and am trying to break that thought process... relating Squeak to
> Java.  
> 
> Appreciate it!
> 

Some analogies:

If you know C:
Smalltalk|C
'abc'    |"abc"
$a       |'a'

If you know some philosophy:

compare the relations:
is a kind of
is a part of
or
compare sets in set theoretical and mereological meaning
(in mereological meaning {a}=a)

If you know some linguistics:
compare count nouns with mass nouns

If you know nothing about those:
compare:
half of a car isn't a car
half litre of water is water

is a character a string?
in Smalltalk the answer is NO.




More information about the Beginners mailing list