opIs broke for structs?
H. S. Teoh
hsteoh at quickfur.ath.cx
Sat Oct 13 15:21:37 PDT 2012
On Sat, Oct 13, 2012 at 11:40:04PM +0200, Era Scarecrow wrote:
> I'm curious why this would break and not work, as is should compare
> against it's location/entity correct? I wonder why it breaks then
> for structs on the stack. I can only find 'opIs missing' when
> searching for it, so...
[...]
Wait, there's such a thing as overloading 'is'? If there is, that's
pretty messed up. The 'is' operator is used for a lot of fundamental
stuff, and allowing structs and classes to change that just sounds ...
wrong.
T
--
It's amazing how careful choice of punctuation can leave you hanging:
More information about the Digitalmars-d-learn
mailing list