Extending basic types - bool

inteja inteja at nosmalldreams.net
Fri Jan 19 06:58:25 PST 2007


%u Wrote:

> 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. 

But even if possible, wouldn;t this conflict with what Frits also said i.e. "The reason is likely that those operators already have a definition when used with a class instance."?

If it is technically feasible, I guess we need to wait for clarification from Walter?


inteja.


More information about the Digitalmars-d-learn mailing list