[ create a new paste ] login | about

Link: http://codepad.org/zi7KYcq1    [ raw code | fork ]

C++, pasted on May 18:
enum logic {FALSE, TRUE, MAYBE = -1};
 
class Fuzzy;
 
logic operator&&(const Fuzzy&, const Fuzzy&)
{
   return FALSE;
}
 
class Fuzzy
{
public:
        
public:
        Fuzzy(logic){}
        ~Fuzzy(){}
 
        logic getValue() const{return FALSE;}
        void setValue(logic){}
 
        friend logic operator&&(const Fuzzy&, const Fuzzy&);
};
 


int main()
{
  Fuzzy(FALSE) && Fuzzy(TRUE);
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: