Case-sensitivity of identifiers: Difference between revisions
Content added Content deleted
(→{{header|Smalltalk}}: ++ sather) |
No edit summary |
||
Line 342: | Line 342: | ||
<pre>The three dogs are Benjamin, Samba and Bernie</pre> |
<pre>The three dogs are Benjamin, Samba and Bernie</pre> |
||
=={{header|Scheme}}== |
|||
<lang scheme>(define dog "Benjamin") |
|||
(define Dog "Samba") |
|||
(define DOG "Bernie") |
|||
(if (eq? dog DOG) |
|||
(begin (display "There is one dog named ") |
|||
(display DOG) |
|||
(display ".") |
|||
(newline)) |
|||
(begin (display "The three dogs are named ") |
|||
(display dog) (display ", ") |
|||
(display Dog) (display " and ") |
|||
(display DOG) |
|||
(display ".") |
|||
(newline)))</lang> |
|||
Outputs: |
|||
<pre>The three dogs are named Benjamin, Samba and Bernie.</pre> |
|||
=={{header|Smalltalk}}== |
=={{header|Smalltalk}}== |