PureObject - PureBasic OOP support
PureObject - PureBasic OOP support
After some time of testing this piece of tool and also with a very kind of help during the development phase by Edel we thought about making this realease as a Christmas gift to all people who want to enjoy OOP support in Purebasic.
What is it? Its simply a preprocessor which catches the code send by the IDE or jaPBe to the compiler and does translate it to the native PureBasic syntax before starting compiling.
It has been tested with PureBasic 4.10 which comes with individual folding- and Keyword support and with the latest version of jaPBe for PB 4.10.
The ASM bug of 4.20 when using *pointers now is handled by the latest update of PureObject, try and report if it still won't work.
Some key-benefits:
- Debugger compatible code output. Means when debugging the code line number index won't be messed up!
- Obligatory support of inheritance and also polymorphism
- Encapsulation
- Constructors supporting parameters
- A final beautyfied output of the converted code. Easy to read i.e. in forums, like if you dont want to force the user to use the Preprocessor to make your code work!
(The converted code can be found in the users temp directory of the Windows installation)
The project page: http://pb-oop.origo.ethz.ch/
There you can get a lot of structured information, a documentation, HowTo's, bugtracking, etc. etc. etc.
Please do read the docs in the project-page, as well as the Changelog before posting Bugs!
Just follow the instructions and ... also like in all cases of new releases in here: report bugs
You can discuss the project in here or in the project page forum area ...
... but do report bugs in the project pages "Issues" tracking area! So we do get the best overview of what needs to be fixed.
Btw. Im not interested in ANY discussions if OOP makes sense or not!
If you don't see any benefit in it, then don't use it, its that easy.
If I do see that this project release thread changes into a flame war its a simple task for me to remove my focus from this thread.
Finally do OOP style developing using the IDE or jaPBe:
Merry Xmas,
Inc.
PS: @Gnozal, ... could it be done that new individual user folding keywords in jaPBe also could come with indentation support?
Thanks.
PS: Thanks to Dräc for pointing me to the final project name: PureObject
What is it? Its simply a preprocessor which catches the code send by the IDE or jaPBe to the compiler and does translate it to the native PureBasic syntax before starting compiling.
It has been tested with PureBasic 4.10 which comes with individual folding- and Keyword support and with the latest version of jaPBe for PB 4.10.
The ASM bug of 4.20 when using *pointers now is handled by the latest update of PureObject, try and report if it still won't work.
Some key-benefits:
- Debugger compatible code output. Means when debugging the code line number index won't be messed up!
- Obligatory support of inheritance and also polymorphism
- Encapsulation
- Constructors supporting parameters
- A final beautyfied output of the converted code. Easy to read i.e. in forums, like if you dont want to force the user to use the Preprocessor to make your code work!
(The converted code can be found in the users temp directory of the Windows installation)
The project page: http://pb-oop.origo.ethz.ch/
There you can get a lot of structured information, a documentation, HowTo's, bugtracking, etc. etc. etc.
Please do read the docs in the project-page, as well as the Changelog before posting Bugs!
Just follow the instructions and ... also like in all cases of new releases in here: report bugs
You can discuss the project in here or in the project page forum area ...
... but do report bugs in the project pages "Issues" tracking area! So we do get the best overview of what needs to be fixed.
Btw. Im not interested in ANY discussions if OOP makes sense or not!
If you don't see any benefit in it, then don't use it, its that easy.
If I do see that this project release thread changes into a flame war its a simple task for me to remove my focus from this thread.
Finally do OOP style developing using the IDE or jaPBe:
Merry Xmas,
Inc.
PS: @Gnozal, ... could it be done that new individual user folding keywords in jaPBe also could come with indentation support?
Thanks.
PS: Thanks to Dräc for pointing me to the final project name: PureObject
Last edited by inc. on Mon Jan 21, 2008 12:30 pm, edited 5 times in total.
Check out OOP support for PB here!
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: Just an object orientated Christmas gift
EDIT : since some time now, jaPBe supports custom indentation and folding.inc. wrote:PS: @Gnozal, ... could it be done that new individual user folding keywords in jaPBe also could come with indentation support?
Have a look at Preferences --> Indentation/Completion
Last edited by gnozal on Sat Apr 04, 2009 7:31 am, edited 1 time in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
- electrochrisso
- Addict
- Posts: 980
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River
On page http://pb-oop.origo.ethz.ch/wiki/Polymorphism it twice states that BASECLASS() is the name of the constructor for the class MASTERCLASS. Is this correct?
Also, at the bottom of the same page, declaration is wrongly spelt as declarartion.
Also, at the bottom of the same page, declaration is wrongly spelt as declarartion.
Anthony Jordan
You could call it PrOOF for PureBasic Object Oriented Finally. So much for wordplay.yoxola wrote:Thanks, that's nice
I think a name like PureOOP is good ,but it may be named POOP so that sounds wierd.
Anyway a good implementation.
Disclaimer: This is said to neither affirming or condem using OOP in PureBasic, use what works for you.
Euh, shouldn't that be POOF then?Demivec wrote:You could call it PrOOF for PureBasic Object Oriented Finally. So much for wordplay.yoxola wrote:Thanks, that's nice
I think a name like PureOOP is good ,but it may be named POOP so that sounds wierd.
Anyway a good implementation.
Disclaimer: This is said to neither affirming or condem using OOP in PureBasic, use what works for you.
Actually, I like the name 'POOP'. It kinda', well, sticks...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )