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.

DarkBASIC Professional Discussion / Compiler not rejecting UDT missing hardstop "."

Author
Message
zenassem
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 4th Oct 2011 16:11 Edited at: 4th Oct 2011 16:14
This just drove me nuts for over an hour. I was using a value in a UDT in a more complex way, but I broke it down into a simple example.
***NOTE the missing "." in the UDT as well as the "print" statement.





Now if you compile & run that,, you'll see the result, but the program won't end properly.


What I also found strange is I would have thought this next example would get caught by the compiler or print a value of 0.
***Note: Now the only missing "." is in the "print" statement.



Your signature has been erased by a mod please reduce it to 600 x 120.
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 4th Oct 2011 20:02
We are developing an alternate IDE for DBPro. Currently we are assembling a list of common syntax errors and syntax errors that are not normally caught by the DBPro compiler. These errors will be highlighted as you write lines of code and you will be prompted to correct them. We have added this to the list of syntax errors.

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2026-07-11 14:36:14
Your offset time is: 2026-07-11 14:36:14