OOP in PB?
Lets make one thing clear: Purebasic supports objects.
When you working with Windows and Controls, you are working with objects.
When you work with Files and Directories, you are working with objects.
The way in which PB does this is quite ingenious, and the longer you use the language the more you come to appreciate the cleverness of it.
When working with PB I can build complicated object structures with just a few commands.
When working with PB I never worry about memory leaks, without any of the expensive overhead needed for garbage collection.
I've spent a lot of time looking at adding an OO syntax to PB, but the conclusion I have come to is that I don't need it.
When you working with Windows and Controls, you are working with objects.
When you work with Files and Directories, you are working with objects.
The way in which PB does this is quite ingenious, and the longer you use the language the more you come to appreciate the cleverness of it.
When working with PB I can build complicated object structures with just a few commands.
When working with PB I never worry about memory leaks, without any of the expensive overhead needed for garbage collection.
I've spent a lot of time looking at adding an OO syntax to PB, but the conclusion I have come to is that I don't need it.
Last edited by GedB on Fri Feb 09, 2007 10:21 am, edited 1 time in total.
You started it with broad sweeping statements that aren't true.Hroudtwolf wrote:Hey, we don't want to have this moment a world championship in splitting hairsShocked What? everyone who uses C is a noob?
PureBasic is written in C. Does this make Fred a veteran, a freak or a bloddy [bloody] beginner?hellhound66 wrote:@C programmers post:
One, who uses C is a veteran, a freak or a bloddy beginner. Don't know many good C coder, but many good C++ coder (and no good PB coder until now, sorry)
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
Ok, "I've written a book"-Kale.
I never said C programmers are noobs.
I just said that procedural programing is fewer professionel than OOP.
But we others don't want to join your decision.
Thats my current way to develop OOP.
http://purebasic-lounge.de/viewtopic.php?p=42786#42786
The overhead of it is the time i've to spend for.
Thats what i wish.
..or...

I never said C programmers are noobs.
I just said that procedural programing is fewer professionel than OOP.
Ok. Thats your decision.I've spent a lot of time looking at adding an OO syntax to PB, but the conclusion I have come to is that I don't need it
But we others don't want to join your decision.
Thats my current way to develop OOP.
http://purebasic-lounge.de/viewtopic.php?p=42786#42786
The overhead of it is the time i've to spend for.
Thats what i wish.
Code: Select all
Class CLASSNAME
Define.l Test
Define.s AlsoTest
Declare.l TestMethode (JustaTest.l)
EndClase
Code: Select all
Class CLASSNAME
Define.l Test
Define.s AlsoTest
Methode TestMethode (JustaTest.l)
*This\AlsoTest = "Hello World"
EndMethode
EndClase
It amazes me when people ask for OOP in PureBasic, because it's almost already fully implemented using interfaces and prototypes. Please learn these before asking for OOP or starting arguments about it.

A sticky in the feature request forum would suffice.Why not make a chapter in the manual about it. Then everybody knows.
Over the past few years, this question has been asked every couple of months. This surpassed annoying a long time ago :roll:But, before Brice explodes
Like I said, I like OOP. But also like I said, it is silly to expect a language to conform to your needs. If PB doesn't meet your needs, find a language that does. That is what I have done and what others have done.
I 100% believe that family should always come first and I don't fault Fred for having to get a full-time job. Hell, have you ever seen a picture of the kid? He definitely needs more money so he can eatIf Fred is forced to get a fulltime job again wouldn't OOP help PB out of the shadows? Just a thought.

Unfortunately, the financial stuff hit as PB was undergoing a huge overhaul for 4.0, not to mention supporting Linux and Mac, and don't forget to throw in Macs switching to Intel chips. Time seems to be such an issue for Fred that development has crawled to a snail's pace compared to what we are used to out of him.
In spite of everything, PB is in good hands. Fred has made it clear where he stands on the OOP issue, so we should respect his decision. Fred is a smart guy and knows where he wants to go with PB. We should trust him enough to let him do what he thinks is right for PB and the community.
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
No you didn't, you said that it is a fact that only newbies use non-OOP languages. :roll:Hroudtwolf wrote:Ok, "I've written a book"-Kale.
I never said C programmers are noobs.
I just said that procedural programing is fewer professionel than OOP.
Yes thats right i have written a book, which is obviously something you should read.Hroudtwolf wrote:Ok, "I've written a book"-Kale.
I do like the way you use the phase '"I've written a book"-Kale.' as if it's a derogortory statement. ...lol, It's something that you could never achieve.

This is already possible natively in PB! :roll:Hroudtwolf wrote:Code: Select all
Class CLASSNAME Define.l Test Define.s AlsoTest Declare.l TestMethode (JustaTest.l) EndClase
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
No, thanks. I don't need itYes thats right i have written a book, which is obviously something you should read.

Retopic:
Many of the pb programmer wishs OOP in PB.
That's just a wish

A few of people of the community and myself planed a petitions pro PB-OOP.
We will see, how many other developers thinks the same.
Optional OOP support wouldn't kill anything.
29. Will the support of OOP in PureBasic be further extended/improved? Or will PureBasic be orientated rather at the procedural BASIC also in the future?
Fred's official answer from September/October 2005.Fred wrote:No. It will stay a procedural BASIC, I don't plan to add class and such I think it will split the PB world in 2 classes (!): the one which have understood fully how OOP work and other which don't. Which means than you couldn't share source codes easily anymore at one place. Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
ffs, just learn Purebasic as it is first:Hroudtwolf wrote:I think you and brice idiotic your sound with your total stupic contra against OOP in PB.
Thats a PRO OOP thread for optional OOP in PB.
Not more.
What is your problem?
http://www.purebasic.fr/english/viewtopic.php?t=19416
-
- Enthusiast
- Posts: 119
- Joined: Tue Feb 21, 2006 12:37 pm
I think, he is a beginner. Otherwise he would have taken C++ ^_^.PureBasic is written in C. Does this make Fred a veteran, a freak or a bloddy [bloody] beginner?
@Brice: Keep calm, we did get it for the first time, you don't need to repeat it again and again.
Code: Select all
repeat
if NewPost
Brice(DropNewPostwithSameInfoAgain)
endif
forever
Didn't hear the last impact? Got some bad drugs? What are you talking about. My 4.02 doesn't support Class/EndClass.This is already possible natively in PB!
There is no sense in talking damn crap here. The question is:
@all: Do you want OOP in PB ?
a.Yes.
b.No.
c.I'm too stupid to answer questions.
/edit: @kale: Wolf is in a project that codes OOP in PB and we have got about 15000 lines of code. I think he knows all variants of programming OOP in PB. And none is really good.
Last edited by hellhound66 on Fri Feb 09, 2007 12:56 pm, edited 1 time in total.