QB64 Phoenix Edition
Why is 'base' treated like a reserved word in the IDE? - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: Why is 'base' treated like a reserved word in the IDE? (/showthread.php?tid=3607)



Why is 'base' treated like a reserved word in the IDE? - Pete - 04-11-2025

Print base

That gives us a Name already in use IDE error message with the syntax checker on.

Now sure, base is a computer / mathematical term, but I thought the only terms excluded from variable use were keywords.

Oh, I should include placing the cursor on 'base' and pressing F1 does nothing, and base is not a keyword in the wiki.

Pete

- Steve replies... Ha, ha, Pete can't make it to first base!


RE: Why is 'base' treated like a reserved word in the IDE? - ahenry3068 - 04-11-2025

Perhaps it is in use in the generated C++ code...      (This is raw speculation, I dont know this for a fact)
I know base is a keyword in C# but I do not recall if C++ uses it.


RE: Why is 'base' treated like a reserved word in the IDE? - SMcNeill - 04-11-2025

OPTION BASE

https://qb64phoenix.com/qb64wiki/index.php/OPTION_BASE


RE: Why is 'base' treated like a reserved word in the IDE? - DSMan195276 - 04-11-2025

It's part of the `OPTION BASE` command. Realistically it could probably still be allowed, but that's is why it's not.


RE: Why is 'base' treated like a reserved word in the IDE? - SMcNeill - 04-11-2025

(04-11-2025, 09:47 PM)DSMan195276 Wrote: It's part of the `OPTION BASE` command. Realistically it could probably still be allowed, but that's is why it's not.

echo... echo... echo... I just said that!   Big Grin

Probably about 0.02 seconds quicker posting.  Wink