Posted By: pegamode
the comparisons of if clauses are still executed completely - 06/13/10 11:17
Currently all comparisons of an if-clause are executed completely. I know that this behaviour was posted some time ago and it was announced that it should be changed within one of the following gs versions, but it hasn't been changed yet.
The following code still leads into an error:
Would be great if this could be changed. This behaviour leads into ugly if-else blocks with code duplication.
Regards,
Pegamode.
The following code still leads into an error:
Code:
void main() { ENTITY* ent = NULL; if (ent != NULL && is(ent, FLAG1)) { beep(); } }
Would be great if this could be changed. This behaviour leads into ugly if-else blocks with code duplication.
Regards,
Pegamode.