Compiler error on comments inside folded SUBs

Previous topic - Next topic

ampos

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

Kitty Hello

Yes. I fixed it. Please wait for an update.

ampos

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

#3
I've tried both of these, and both work fine...

Are you using more comments ?

[attachment deleted by admin]

ampos

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

bigsofty

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)