overloading operators for I/O

Michiel nomail at hotmail.com
Wed Feb 14 15:56:45 PST 2007


> But I do not understand that D does not provide similar operators for
> free usage.

I would like that. Just some extra operators that you can use for your
personalized types.

I'm not sure if I like the prefix-idea, though. An operator should be intuitive
(readable) and easy to use. A prefix pretty much removes that advantage, and I
would rather use functions. (By the way, I think the operator-symbols should at
least be on a standard keyboard.)

But ->, <-, postfix !, !in, etc. would be good.



More information about the Digitalmars-d mailing list