I am working on cleaning up some of my code made in the past, and still allow for backwards compatibility and have run into some minor details that I would like to get your take on if it should be submitted to PB for possible changes.
I probably already know MCM's take on it. But would like others input.
Now this is NOT a "Bug" / NOT an Error / NOT a mistake, but just something that did not exist in PB 8.04 and therefore will not compile in 8.04 because "ERL$" did not exist then.
Would a NFS be in order for future compilers to somehow account for compilers farther in the future to use or not to use keywords? IE: If this were the days of 8.04 to somehow account for what we now know as ERL$ ???
Or is there already a way to determine if ERL$ exists in the compiler?
Its just a thought of minor things that may need a change (if it can be changed) that I have run across.
I probably already know MCM's take on it. But would like others input.
Code:
#COMPILE EXE #DIM ALL FUNCTION PBMAIN () AS LONG 100 ERROR 69 SELECT CASE %PB_REVISION CASE > = &H900 MSGBOX "PB Version = " + LEFT$(HEX$(%PB_REVISION), 1) + "." + MID$(HEX$(%PB_REVISION), 2) + $CR + "Error at " + ERL$ CASE < &H900 MSGBOX "ERL$ is not available in PB version " + LEFT$(HEX$(%PB_REVISION), 1) + "." + MID$(HEX$(%PB_REVISION), 2) END SELECT END FUNCTION
Would a NFS be in order for future compilers to somehow account for compilers farther in the future to use or not to use keywords? IE: If this were the days of 8.04 to somehow account for what we now know as ERL$ ???
Or is there already a way to determine if ERL$ exists in the compiler?
Its just a thought of minor things that may need a change (if it can be changed) that I have run across.
Comment