overloading operators for I/O

Walter Bright newshound at digitalmars.com
Wed Feb 14 16:15:57 PST 2007


Manfred Nowak wrote:
> I understand your wish to have fixed meanings for several operators. 
> But I do not understand that D does not provide similar operators for 
> free usage.
> 
> "+", "-" and all the others with fixed meaning could be prefixed for 
> example by the degree symbol "°+", "°-" and provided with the same 
> priorities as their unprefixed counter parts.
> 
> Thus enabling a possibly interwoven parallel expression hierarchy.

The problem with using unicode operators is that unicode isn't as well 
supported as it should be. It's one thing to support unicode in the 
language, it's another to require one to use a unicode capable text 
editor to edit source code.



More information about the Digitalmars-d mailing list