Adding Unicode operators to D
Simen Kjaeraas
simen.kjaras at gmail.com
Thu Oct 23 19:45:47 PDT 2008
On Thu, 23 Oct 2008 23:47:59 +0200, Bill Baxter <wbaxter at gmail.com> wrote:
> 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
That seems to make sense indeed.
--
Simen
More information about the Digitalmars-d-announce
mailing list