R
raylopez99
Beware this newbie trap:
private bool myFunction (Myenum X)
{
bool local_bool; //this will not compile; you need to do this first:
bool local_bool = true;
switch (X) {
case 1:
local_bool = true;
break;
case 2:
local_bool=false;
break;
}
return local_bool;
}
This will not compile. You need to add a 'temporary' actual value for
it to compile, see the comment // above
RL
Hahahaha! You fed the troll! Eh, paranoid Marc and Goran? Koo-koo!
private bool myFunction (Myenum X)
{
bool local_bool; //this will not compile; you need to do this first:
bool local_bool = true;
switch (X) {
case 1:
local_bool = true;
break;
case 2:
local_bool=false;
break;
}
return local_bool;
}
This will not compile. You need to add a 'temporary' actual value for
it to compile, see the comment // above
RL
Hahahaha! You fed the troll! Eh, paranoid Marc and Goran? Koo-koo!