Jump to content

Case-sensitivity of identifiers: Difference between revisions

Added K version
m (moved Three dogs to Case-sensitivity of identifiers: More descriptive.)
(Added K version)
Line 222:
//the conventions listed in comments here are not enforced by the language
System.out.println("There are three dogs named " + dog + ", " + Dog + ", and " + DOG + "'");</lang>
 
=={{header|K}}==
<lang k>
dog: "Benjamin"
Dog: "Samba"
DOG: "Bernie"
"There are three dogs named ",dog,", ",Dog," and ",DOG
"There are three dogs named Benjamin, Samba and Bernie"
</lang>
 
=={{header|Lua}}==
<lang lua>dog = "Benjamin"
Cookies help us deliver our services. By using our services, you agree to our use of cookies.