Singing with my nephew, I realized that internally I was having a lot of discomfort with this line: (where I was processing "you" is an instance of the Human class, i.e. Human *)
If( you->Are(Human::HAPPY) && you->Know(Human::HAPPY) )
{
you->Clap(Human::HANDS) ; } How is it possible for the first condition to be true and the second to be false
(
Read more... )
Comments 6
if( you->are(Human::HAPPY) && you->know(you->state == Human::HAPPY) )
{
you->Clap(you->HANDS);
}
Knowledge of happiness is required for the first condition. Knowledge of self is required for the second condition.
Also note that I've rescoped HANDS, since they are instance members.
Reply
(you->are(Human::HAPPY) && you->know(you, Human::HAPPY))
As you could use the same interface to know the state of others as well, nu?
Reply
Reply
Why don't you write-out the Indian national anthem in multi-threaded C++ code?
Reply
Reply
Reply
Leave a comment