| <<O>> Difference Topic StyleGuide (r1.18 - 14 Mar 2003 - GerritVoss) |
| Added: | |
| > > |
I do not like it at all ;-( (GV)
I would go for this :
switch(hugo)
{
case HUGO0:
doSomethingCool();
break;
case HUGO1:
{
UInt32 tempint = getTempInt();
doSomethingCooler(tempint);
}
break;
case HUGO2:
veryShort();
break;
case HUGO3:
veryShort2();
break;
default:
nothingCoolToDo();
break;
}
typedef MyClass::HelperClass HelperClass;
switch(hugo)
{
case HelperClass::HUGO0:
{
doSomethingVeryCoolWithUnsuspectingClass(
this->getUnsuspectingClass());
}
break;
case HelperClass::HUGO1:
{
UnsuspectingClass & victim = this->getUnsuspectingClass();
suspectClassInstance->makeInconspicious(victim,
HelperClass::NOW);
}
break;
default:
break;
}
(GV)
|
| Added: | |
| > > | |
| Topic StyleGuide . { View | Diffs | r1.19 | > | r1.18 | > | r1.17 | More } |
|
Revision r1.17 - 11 Dec 2002 - 00:10 GMT - DirkReiners Revision r1.18 - 14 Mar 2003 - 12:57 GMT - GerritVoss |
Copyright © 2000 by the contributing authors.
All material on this collaboration tool is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback. |