Operator overloading, structs

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Jun 3 15:00:56 PDT 2009


Yigal Chripun wrote:
> your abstraction inversion example doesn't apply here. The problem I see 
> is the narrowing implicit cast, i.e. int values behave like booleans. I 
> have no problem with the reverse which is what your example is about.

An int does not convert to bool implicitly. An int can be tested with 
"if", which is a different thing.

Andrei



More information about the Digitalmars-d mailing list