Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / Compiler error when empty comment is suffix at the end of a conditional branch

Author
Message
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 9th May 2012 00:18 Edited at: 9th May 2012 00:19
You get a 'Could not close nest' error if you leave a [`] or [//] comment at the end of a closing branch statement.

The issue was found by accident due to a typo, but it can take a while to find the cause of the error in a large project; since the error line is the last line of the project, even though the problem is elsewhere.

The following 3 snippets throw up the error:







This one will not cause an error because the comment is not empty



This last one will not cause an error because there is a space between the statement



MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 9th May 2012 12:42
that's odd, but is that not bad coding practice either way? or are you just pointing something out that was discovered by incident?

is this for DBpro btw?

Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 9th May 2012 15:38
Yeah, for DBPRO.

It was an accident but I felt it is worth mentioning because it took a long time to find the problem because the error line is not accurate.

Login to post a reply

Server time is: 2024-04-25 00:57:26
Your offset time is: 2024-04-25 00:57:26