Overloading Operator !

Walter Bright newshound at digitalmars.com
Wed Oct 25 12:58:10 PDT 2006


Rob Atkinson wrote:
> I've been working on my own EBNF parser (basically a D version of boost's
> spirit) but I just realised that you can't overload unary !

I'd really like to get a D implementation of Spirit!

> Walter, are there any plans to do overload additional operators?  The docs state:
> Future Directions
> The operators =, !, ., &&, ||, ?:, and a few others will likely never be
> overloadable.
> 
> If we're close to 1.0 should this be changed to "will not be overloadable"?
> Or will some more squeeze in before 1.0?
> 
> I've already worked around ! with a slightly different syntax (which I think
> is better than boost's) so I don't need unary !, just more of a general question.

I'd not count on it for now, too many other things on the plate.



More information about the Digitalmars-d mailing list