Error Codes?

Blitz3D Forums/Blitz3D Programming/Error Codes?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Specifically, the error I was seeking was "Expecting identifier". After a bit of trial and error, I found the cause.

When programming in C++, it is often desirable to include the "const" keyword before certain variables in function definitions. This tells the compiler that this particular variable will not be changed inside the function (and aids in debugging). I assumed B3D had similar functionality, since it also has the Const keyword; but it does not. Const (I assume) can only be used when specifying global variables, not function parameters.