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 messing up parenthese usage

Author
Message
Arne
20
Years of Service
User Offline
Joined: 11th May 2005
Location: Oslo, Norway
Posted: 21st Jun 2005 02:17
Hi,

I have great problems using parentheses with DBPro. Sometimes, putting function parameters inside parentheses seemingly makes the compiler angry. For example, the line

won't work, while
has no problems at all.

This is quite boring, as using parentheses kind of helps making the code readable, especially with the commands consisting of several words. This problem also appears when using user defined functions.

Anyone?
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 21st Jun 2005 03:00
If I'm not mistaken, then only the default commands that return something contain parenthasis. (User functions must use parenthasis)

But then again I might be wrong
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Jun 2005 03:58
Absolutely right:

- DBPro commands do not allow parentheses.
- DBPro functions require parentheses.
- User functions require parentheses, whether they return a value or not.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2025-06-09 05:08:26
Your offset time is: 2025-06-09 05:08:26