Page 2 of 4

Posted: Thu May 15, 2003 11:48 am
by horia
You're right , Ricardo !

Posted: Thu May 15, 2003 12:07 pm
by dmoc
Kale:
Oh sod it im fed up with this, I'll not post anymore. cya later...
I thought you liked to debate :? Sincerely, I hope you do not leave the forum.

Posted: Thu May 15, 2003 2:21 pm
by lanael

From the link above :
"OOP is more of a program organizational philosophy rather than a set of new external solutions or operations. "

I agree with that but why does he continue to criticize OOP after thinking that ?
It's a tool like other tools...

Nobody's forced to use it !?


And that's the point here ...

Every anti-oop guy are afraid that PureBasic goes to OO.

Do you know you can make pure C programs with a C++ compiler ?

About the example I show, it was just two stuff *added* to the language. It was not about *transforming* PureBasic in a OO language ( if even such a language exists... hum.. ; )


@Magi : hey another Marc here !! :)

@"young fighters" : ...

So... waiting for the main coder's feeling...

Posted: Thu May 15, 2003 2:36 pm
by TronDoc
ricardo wrote:that some of us LOVES the PB way to manage the GUI.
:D Joe

Posted: Thu May 15, 2003 2:59 pm
by freak
lanael wrote: @"young fighters" : ...

So... waiting for the main coder's feeling...
Hum, you guys don't listen, eh :?:

Here you go...
fred wrote:For all: no. It's a BASIC dialect. But I will do an 'Interface' like structure to access easily the COM/DX components from PureBasic.
For me, this says everything :D

Timo

Posted: Thu May 15, 2003 3:21 pm
by lanael
Ok, ok, I give up ! :)

I've just need to find a good C++ game library...
Wish me good luck !!

Posted: Thu May 15, 2003 3:53 pm
by geoff
Ricardo, I agree with you 100%

I'd hate to see free and easy PB descend into a morass
of OOP rules and complexity.

I don't think we should bash OOP so quickly.

Posted: Thu May 15, 2003 9:55 pm
by CoderLaureate
I agree with Fred.

PB is Pure Basic. Never has Basic ever been intended to be an OOP language. VB comes close. VB.Net comes closer, but they're both notoriously expensive.

I love Pure Basic, and I love OOP.

If you want to program in OOP try Java, or C++, or SmallTalk. I'm a Java developer by profession, and I love the OOP methodology. I truly believe that OOP will be a major part of all programming in the future.

But let's keep the OOP out of Pure Basic. We have Structures, that's close enough.


-Jim

Posted: Thu May 15, 2003 9:58 pm
by CoderLaureate
lanael wrote:Ok, ok, I give up ! :)

I've just need to find a good C++ game library...
Wish me good luck !!
Try Crystal Space:
http://crystal.sourceforge.net/drupal/
It's cross platform and it's free.

We might even be able to use the API in Pure Basic.


-Jim

Posted: Fri May 16, 2003 11:34 am
by Fred
The fact is a bit different. All the nextgen API from microsoft (and other system too) seems to be OO has it provides number of advantage over other methods. So PB will have an easy way to use such libraries (COM & DX), I just need to clear my mind and thing to an elegant way to implement it without broke all the syntax. But it will be only an OO access and never an OO langage, with class, methods, attributes, inheritance, polymorphisme etc... That's what I mean. Is it this time clear enough ?

Posted: Fri May 16, 2003 12:00 pm
by dmoc
I don't know if this is off-track so feel free to flame me if so :wink: but wouldn't a useful all-round syntax be...

MyStruct\MyFunction()

Edit: And of course...

*MyStruct\MyFunction()

Fire away!

Posted: Fri May 16, 2003 2:52 pm
by Fred
That's exactly how I would like to do it.

Posted: Fri May 16, 2003 5:02 pm
by fsw
If somebody needs OOP in Basic:

Phoenix Object Basic
http://www.janus-software.com/

HBasic
http://hbasic.sourceforge.net/

both are free, but interpreted languages...

I can live without OOP.
I like to work with a rock solid core language - let's concentrate on that.

Posted: Mon May 19, 2003 2:02 pm
by GedB
lanael wrote:
It's a tool like other tools...

Nobody's forced to use it !?


And that's the point here ...
I've only just discovered Pure Basic, and I think its great.

I just hope the language doesn't get polluted with this type of thinking.

As far as I can see PB is so amazing because it complies to a very personal vision. I hope it stays amazing by keeping that vision, rather than falling into the kitchen sink mentality of VB and Delphi.

Posted: Wed Jun 25, 2003 2:42 am
by mp303
I don't understand why you people argue against OOP? as was said, you wouldn't have to use it ... in my opinion, OOP works as well in BASIC dialects as it does in any other language - neither C or Pascal (which later became Delphi) were OOP languages originally, but it sure hasn't done any harm to the languages, or made things anymore difficult for the programmers, to have the OOP features added; you can still compile your monolithic disorganized oldskool C or Pascal code in these compilers ;) ... wether you want to enjoy the benefits of object-oriented development is entirely up to yourselves.

I agree though, a full OOP solution would be overkill - just a few of the most essential OOP features would suffice ... it's mainly just a tool that helps you maintain overview of very large projects with many entities, makes it easy for you to reuse your code, and makes it possible for others to utilize your code without needing to know much about how it works - all of these effects are valuable additions to any language, and you can still write "pure" basic if that's all you need...