Case-sensitivity of identifiers: Difference between revisions
Content deleted Content added
Underscore (talk | contribs) m moved Three dogs to Case-sensitivity of identifiers: More descriptive. |
Added K version |
||
Line 222: | Line 222: | ||
//the conventions listed in comments here are not enforced by the language |
//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> |
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}}== |
=={{header|Lua}}== |
||
<lang lua>dog = "Benjamin" |
<lang lua>dog = "Benjamin" |