Author Topic: Bug with comment toggle and inline code  (Read 1870 times)

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Hi Gernot,

I just encountered a bug I think, while working on my xors3d wrapper.
I was searching for a bug, and using the method of commenting out blocks of code, until I traced down the culprit of my problem.
When I found the bug and uncommented everything using the block comment toggle function, the ide changed all commands (in common with GLB such as 'if' and 'return') within the inline blocks to all caps, treating them as though they were within the glbasic scope, rather than C.
Unfortunately I just discovered this bug with quite a large block of code, so I will get back to cleaning up again.

Thanks in advance for your help on this one.

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Bug with comment toggle and inline code
« Reply #1 on: 2011-Jan-07 »
oh dear. Bug filed.

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: Bug with comment toggle and inline code
« Reply #2 on: 2011-Jan-07 »
Thanks Gernot.
Not a major bug of course, but certainly an annoying one when it catches you off guard.  :)

I noticed it after I had fixed my own bug by isolation, uncommented my other code, and compiled.
Received a big 'IF' not recognized in this scope warning.
I looked back at the code, and probably verbalized something not as pleasant as 'Oh Dear'  :S

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9