Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / Should MOVE CAMERA UP, X Compile?

Author
Message
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 28th Oct 2012 02:19 Edited at: 28th Oct 2012 02:19
If you accidently prefix a comma after the up command, the compiler treats the word 'up' as a variable.

It ignores the fact that Move Camera Up is a registered plugin function (Matrix1 Utils). This could be disasterous if one is not aware of this behaviour.

EG: MAKE OBJECT CUBE, 1, 1 will compile, and throw a missing mesh error.

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 28th Oct 2012 19:33
You have the same problem with



and



Both compile without error and make sense for the reason you give.

I guess the problem is that the list of reserved words doesn't include every word that occurs in commands. Also, what would you expect DBPro to do about plugin commands that use words not in the DBPro reserved word list?

I'm not quite sure what solution you'd recommend - although at the very least a definitive list of reserved words would be helpful, especially if coupled with a warning about what can happen if you use non-reserved words that form part of the language. The present Help file entry is inadequate:

Quote: "RESERVED WORDS

Words that are deemed to be reserved are the commands of the language. You will not be able to name your variables, arrays or user functions if they exist as part of the language as commands. As you become more familiar with the language, you will be able to naturally avoid using reserved words for your variable and array names."


The above looks like a placeholder statement to me.

Here's another thread on a related problem:

http://forum.thegamecreators.com/?m=forum_view&t=144491&b=15
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 30th Oct 2012 11:56
Quote: "at the very least a definitive list of reserved words would be helpful, especially if coupled with a warning about what can happen if you use non-reserved words that form part of the language."


Roger that.

Login to post a reply

Server time is: 2024-04-26 01:49:54
Your offset time is: 2024-04-26 01:49:54