Author Topic: Compiler error on comments inside folded SUBs  (Read 1764 times)

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1600
    • View Profile
    • AMpostata Website
As I tracked the error, here is the correct bug report:

COMPILER WILL GIVE ERROR IF THERE IS COMMENTS INSIDE SUBs AND THE SUBs ARE FOLDED.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10762
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Compiler error on comments inside folded SUBs
« Reply #1 on: 2010-Sep-15 »
Yes. I fixed it. Please wait for an update.

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1600
    • View Profile
    • AMpostata Website
Re: Compiler error on comments inside folded SUBs
« Reply #2 on: 2010-Nov-10 »
It has come back but thus time no errors. Just blank debug window, no errors.

Can someone replicate?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

  • Guest
Re: Compiler error on comments inside folded SUBs
« Reply #3 on: 2010-Nov-10 »
I've tried both of these, and both work fine...

Are you using more comments ?

[attachment deleted by admin]
« Last Edit: 2010-Nov-10 by MrTAToad »

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1600
    • View Profile
    • AMpostata Website
Re: Compiler error on comments inside folded SUBs
« Reply #4 on: 2010-Nov-11 »
Really I have not done deep tests... My game did compile in previous version, and now it does not compile (just a blank debug windows after pressing F5) if the only SUB I had with comments is folded.
If the SUB with the comments is FOLDed, it does not compile.

it is the same problem with the old version.

Try to put the comment after a command and have the sub folded.

Sorry, I am not at home right now.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2702
    • View Profile
Re: Compiler error on comments inside folded SUBs
« Reply #5 on: 2010-Nov-11 »
Becareful not to edit GBAS files in an external text editor, the control characters used for folding can cause no end of problems if modified by accident.

Cheers,


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