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 / DBP 7.4 - Assigning a variable in its declaration only works for variables and constants

Author
Message
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 26th Sep 2009 18:38
... And there is no error or warning if you try to use anything different:





I assume there's some intention in allowing only variables and constants, but letting the programmer try to use something else when at run-time it simply won't do what is written is misleading.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Sep 2009 16:43
Yes, it's apparently intentional, but it should at least give some sort of error during compile.

Login to post a reply

Server time is: 2026-06-11 11:40:02
Your offset time is: 2026-06-11 11:40:02