News:

Let's find out together what makes a PIC Tick!

Main Menu

reserved word default

Started by Pepe, Nov 22, 2026, 09:38 PM

Previous topic - Next topic

Pepe

Could it be that "default" is now a reserved word in the compiler? I have several programs that were compiled and working with the previous version, but with the new version of the compiler, I get an error when I use "default" as the name of a subroutine.
If that is the case, it should be noted in the manual as a reserved word.

CPR

I've found (maybe related?) issues with occasionally using a single letter as a variable within procedures, or includes. For instance - using
Proc something()
Dim i as Byte = 0        '// Some general loop counter
....
May make the pre-processor just lockup, or the compiler trip up further down the compilation with an error.

Renaming the single letter variable to this -
Proc something()
Dim ii as Byte = 0      '// Some general loop counter
...


Usually always makes the issue go away. I don't know if that's at all related to what you're experiencing, but maybe relevant in a weird way?

▲