Re: Unicode function name? ∩

rikki cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 27 22:28:17 PDT 2016


On 28/08/2016 5:21 PM, Tofu Ninja wrote:
> Are unicode function names not supported in dmd?
> bool ∩(A, B)(A a, B b){
>     return intersect(a, b);
> }
> Error: character 0x2229 is not a valid token
>
> I won't be terribly disappointed if I can't do this, I really just tried
> it on a whim, but I thought dmd supported unicode.

Try Ÿ.
The character I have shown above will work as it is an alphabetic[0] 
character.

[0] http://dlang.org/phobos/std_uni.html#.isAlpha


More information about the Digitalmars-d-learn mailing list