Extending basic types - bool

%u unknown at dontsay.com
Fri Jan 19 05:58:44 PST 2007


Frits van Bommel Wrote:
> The operators !, ., &&, ||, ?:, and a few others will likely never be 
> overloadable.
This was set up long before Walter implemented lazy evaluation. Now that D has lazy evaluation it should be easy to make at least &&, || and ?: overloadable. 
The module .-operator is IMO a misconstruction.
The !-operator as a prefix operator is a solely C-ish-negation; at least I have not seen it anywhere else. Thus there is no need to overload it ever.
--
Anonymity is not a Crime


More information about the Digitalmars-d-learn mailing list