OO Programming in PureBASIC ????
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...
Hum, you guys don't listen, ehlanael wrote: @"young fighters" : ...
So... waiting for the main coder's feeling...

Here you go...
For me, this says everythingfred 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.

Timo
quidquid Latine dictum sit altum videtur
-
- User
- Posts: 50
- Joined: Fri Apr 25, 2003 7:21 pm
- Location: The World is my country, all mankind are my brethren, and to do good is my religion.
- Contact:
I don't think we should bash OOP so quickly.
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
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
-
- User
- Posts: 50
- Joined: Fri Apr 25, 2003 7:21 pm
- Location: The World is my country, all mankind are my brethren, and to do good is my religion.
- Contact:
Try Crystal Space:lanael wrote:Ok, ok, I give up !
I've just need to find a good C++ game library...
Wish me good luck !!
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
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 ?
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.
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.
I've only just discovered Pure Basic, and I think its great.lanael wrote:It's a tool like other tools...
Nobody's forced to use it !?
And that's the point here ...
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.
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...
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...