Inspired by another question regarding java-script language. Can the expression
(a==1)&&(a==2)&&(a==3)
evaluate to true i
Yes it can:
class Foo { public: bool operator==(int a) { return true; } };
Then, let a be of type Foo and voila.
a
Foo
Can this actually be useful? I don't really see it being useful no.