I am trying to create code that runs fast i can.
For doing that ,I skiped some variables initializes when needed.
For example: (I can’t change the labels\goto parts ,I must use it for this situation)
bool Func(bool BooleanParameter) {
if (BooleanParameter)
goto _true;
else
goto _false;
_true:
string str; //Some code after that one that does with this variable
return false;
_false:
return true; //Exception because str doesn't initialized
}
But there is exception because there a way to not initialize variables and that variables destruct at the end.
Why not just:
?
This seems to achieve the desired result without dubious use of
gotoetc.