IonicWind Software

IWBasic => IWB3.x Bug Reports => Topic started by: Logman on August 19, 2015, 08:59:02 AM

Title: Stand-alone REM statement
Post by: Logman on August 19, 2015, 08:59:02 AM
The REM statement cannot be used by itself like in IDE version 2.0. Here is example code:


REM ------------------------------
REM Program 1-1: MyProgram
REM
REM ------------------------------


When the REM statement is set by itself, it creates an error message that the "REM statement is undefined". When I place a space after the REM statement, all seems okay and I don't get the error message.

Using a lone ' (apostrophe) on a blank line seems to work as it should. Placing a REM statement on a blank line without a following space should not create an error and prevent the build from completing.

Logman
Title: Re: Stand-alone REM statement
Post by: LarryMc on August 19, 2015, 10:16:07 AM
that's a problem for LarryS and the compiler

I have never used REM in an IWBasic program that I  was writing

I've used
' ------------------------------
' Program 1-1: MyProgram
'
' ------------------------------

and I have used
/* ------------------------------
/ Program 1-1: MyProgram
/
/ ------------------------------*/
Title: Re: Stand-alone REM statement
Post by: Logman on August 20, 2015, 06:13:25 AM
Thanks Larry.

It is quite disconcerting though. Hope LarryS fixes soon. It did work correctly in IWBasic version 2.x.

I use REM a lot in my books and when using inline assembly language code so readers don't get confused over the semi-colon " ; " used to indicate comments in assembly and the apostrophe " ' " used in IWBasic to mark comments.

Logman
Title: Re: Stand-alone REM statement
Post by: Rock Ridge Farm (Larry) on May 18, 2016, 10:06:19 AM
OK - after many hours of hacking, cutting, pasting, cussing I found the problem is in the api call SetUnhandledExceptionFilter(MyUnhandledFilter);
After much searching I find many references to not using REM on a line alone with no following space or text. Appears to be a known issue since XP days.
I see no immediate way to fix this - I did log an issue with MS10 compiler group.

Short term fix - add the space after the REM.