?ENDIF + Remark ERROR

Previous topic - Next topic

bigsofty

To get the bug...

Code (glbasic) Select
?ENDIF //<- This remark causes the following problem.

Code (glbasic) Select
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.6.873 SN:2a049f7b - 3D, NET
"controls.gbas"(0) error : IF without ENDIF / THEN


To remove the bug...

Code (glbasic) Select
?ENDIF

...remove the remark.

This was an incredible pain to find as it always reported that the problem was with an ordinary 'IF/THEN/ENDIF' at line 0, no matter where the problem was.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

#1
OK, fixed in next update.