Case-sensitivity of identifiers: Difference between revisions
no edit summary
mNo edit summary |
No edit summary |
||
Line 535:
There is just one dog, named Bernie
</pre>
=={{header|Frink}}==
Line 542 ⟶ 543:
DOG = "Bernie"
println["There are three dogs named $dog, $Dog and $DOG"]</syntaxhighlight>
=={{header|FutureBasic}}==
FB is lettercase-insensitive and throws an error with variables or constants with identical names but of varying case. However, here's an easy work around.
<syntaxhighlight lang="futurebasic">
CFDictionaryRef canines
canines = @{@"dog":@"Benjamin", @"Dog":@"Samba", @"DOG":@"Bernie"}
print "The three dogs are "; canines[@"dog"]; ", "; canines[@"Dog"]; " and "; canines[@"DOG"]; "."
HandleEvents
</syntaxhighlight>
{{output}}
<pre>
There
</pre>
=={{header|Gambas}}==
|