Author Topic: ?ENDIF + Remark ERROR  (Read 1295 times)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2747
    • View Profile
« on: 2010-Mar-04 »
To get the bug...

Code: (glbasic) [Select]
?ENDIF //<- This remark causes the following problem.
Code: (glbasic) [Select]
*** Configuration: WIN32 ***
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]
...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.


“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)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10814
  • here on my island the sea says 'hello'
    • View Profile
Re: ?ENDIF + Remark ERROR
« Reply #1 on: 2010-Jun-01 »
OK, fixed in next update.
« Last Edit: 2010-Jun-01 by Kitty Hello »