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 Discussion / My dream for DarkBasic

Author
Message
Joe Cooning
22
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 8th Jan 2004 16:54
Wouldn't it be nice if you could make classes and objects in dark basic like you can in other languages like JAVA? It's could make things somuch easier. You can do functions, but sometimes those just don't handle enough. (*sigh*) Oh well...

"The greatest oxymoron . . . ever, 'Microsoft Works'."
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 8th Jan 2004 17:04
Perhaps, you'd still need functions though, regardless of class support or not. Classes are just structure, functions do the actual work.

Cheers,

Rich

With our species on the edge of extermination,
with no prospect but a horrible death,
we actually played games.
Mnemonix
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 8th Jan 2004 17:22
I just find classes are more efficient way of managing my data, even if only at design time.

Watch this space if you like getting bored...
http://darkbasicpro.thegamecreators.com/?gf=irc <<Visit the chat!.;
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 9th Jan 2004 19:01
Quote: "My dream for DarkBasic"

my dream is actually finishing a project

Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 9th Jan 2004 19:12
my dream too !

if I = 1 then I = 1 else I = 0
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 10th Jan 2004 02:48
types and arrays together form something of the sort for DBP
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 10th Jan 2004 04:19
You can have types in DBC too, and GLoabals aswell!

You just need DarkEDIT, and you go into the options menu and turn on the extended syntax for each of them.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 10th Jan 2004 05:25
Er, the syntax highlighter highlights Type, but as far as I know it doesnt compile it...thats just what I have heard...

RPGamer


We need help! Email us! [email protected]
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 10th Jan 2004 05:32
Classes and functions are what slow downa program. That's why java is slower, because of all the calls and redirecting code flow. It'd help organize, I suppose...but at what cost?

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 10th Jan 2004 08:28
Types work fine in DBC ( with the extended syntax enabled )



That compiles, and works fine in DBC ( but is obviousely different to the methods in DBPro, thus, some might get confused. )

How do i know how to write it like that? I read the version history of DarkEdit that comes with it, it's explained in there for you.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-22 08:32:18
Your offset time is: 2025-05-22 08:32:18