Unicode variable names: Difference between revisions

Added D entry
(Added D entry)
Line 5:
:* Increment it
:* Print its value.
 
=={{header|D}}==
D source files support four character encodings: ASCII, UTF-8, UTF-16 and UTF-32.
<lang d>import std.stdio;
 
void main() {
auto Δx = 1;
Δx++;
writeln(Δx);
}</lang>
You can use any of the following:
Letters,
digits,
underscore (_),
code points >= \u00A0 and < \uD800,
code points > \uDFFF.
 
However, the following cannot be used:
\u0024 ($),
\u0040 (@) and
\u0060 (`).
 
See:
http://www.prowiki.org/wiki4d/wiki.cgi?DanielKeep/TextInD
 
=={{header|Go}}==
Anonymous user