Case-sensitivity of identifiers: Difference between revisions

Content deleted Content added
Chunes (talk | contribs)
added a solution for Factor
Line 445: Line 445:
sequence DOG = "Bernie"
sequence DOG = "Bernie"
printf( 1, "The three dogs are named %s, %s and %s\n", {dog, Dog, DOG} )</lang>
printf( 1, "The three dogs are named %s, %s and %s\n", {dog, Dog, DOG} )</lang>

=={{header|Factor}}==
Factor identifiers are case-sensitive.
<lang factor>IN: scratchpad [let
"Benjamin" :> dog
"Samba" :> Dog
"Bernie" :> DOG
{ dog Dog DOG } "There are three dogs named %s, %s, and %s." vprintf
]</lang>
{{out}}
<pre>
There are three dogs named Benjamin, Samba, and Bernie.
</pre>


=={{header|Forth}}==
=={{header|Forth}}==