Anonymous user
Case-sensitivity of identifiers: Difference between revisions
→{{header|Tcl}}: ++ Smalltalk
(→{{header|bc}}: ++ C) |
(→{{header|Tcl}}: ++ Smalltalk) |
||
Line 323:
The local variables are dog, dOg, doG, names.
The constants are Dog, DOG.</pre>
=={{header|Smalltalk}}==
{{works with|GNU Smalltalk}}
Smalltalk's symbols are case sensitive.
<lang smalltalk>|dog Dog DOG|
dog := 'Benjamin'.
Dog := 'Samba'.
DOG := 'Bernie'.
( 'The three dogs are named %1, %2 and %3' %
{ dog . Dog . DOG } ) displayNl.</lang>
Outputs:
<pre>The three dogs are named Benjamin, Samba and Bernie</pre>
=={{header|Tcl}}==
|