Jump to content

Case-sensitivity of identifiers: Difference between revisions

(→‎{{header|Tcl}}: ++ Smalltalk)
Line 323:
The local variables are dog, dOg, doG, names.
The constants are Dog, DOG.</pre>
 
=={{header|Sather}}==
Though by convention Sather uses all uppercase letters for class names, a variable can be
all uppercase.
 
<lang sather>class MAIN is
main is
dog ::= "Benjamin";
Dog ::= "Samba";
DOG ::= "Bernie";
#OUT + #FMT("The three dogs are %s, %s and %s\n",
dog, Dog, DOG);
end;
end;</lang>
 
Outputs:
 
<pre>The three dogs are Benjamin, Samba and Bernie</pre>
 
 
=={{header|Smalltalk}}==
Line 339 ⟶ 358:
 
<pre>The three dogs are named Benjamin, Samba and Bernie</pre>
 
 
=={{header|Tcl}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.