Case-sensitivity of identifiers: Difference between revisions
Content added Content deleted
(Added Frink) |
|||
Line 264: | Line 264: | ||
print( "There are three dogs named "..dog..", "..Dog.." and "..DOG.."." )</lang> |
print( "There are three dogs named "..dog..", "..Dog.." and "..DOG.."." )</lang> |
||
<pre>There are three dogs named Benjamin, Samba and Bernie.</pre> |
<pre>There are three dogs named Benjamin, Samba and Bernie.</pre> |
||
=={{header|Modula-2}}== |
|||
<lang Modula-2>MODULE dog; |
|||
IMPORT InOut; |
|||
TYPE String = ARRAY [0..31] OF CHAR; |
|||
VAR dog, Dog, DOG : String; |
|||
(* No compiler error, so the rest is simple *) |
|||
BEGIN |
|||
InOut.WriteString ("Three happy dogs."); |
|||
InOut.WriteLn |
|||
END dog.</lang> |
|||
=={{header|PARI/GP}}== |
=={{header|PARI/GP}}== |