Adding Unicode operators to D
Bill Baxter
wbaxter at gmail.com
Thu Oct 23 14:47:59 PDT 2008
On Fri, Oct 24, 2008 at 5:48 AM, Simen Kjaeraas <simen.kjaras at gmail.com> wrote:
> writefln(√(c.foo)); // I thought this should work in D today, using
> "alias sqrt √;", but it seems the compiler chokes on it. :(
According to the spec, you can can only use "UniversalAlpha" Unicode
characters in your identifiers. Supposedly those are defined in
ISO/IEC 9899:1999(E) Appendix D. But I'm guessing the ISO did not
define square-root-symbol as an alpha character.
--bb
More information about the Digitalmars-d-announce
mailing list