It is currently Tue Oct 23, 2018 8:39 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 95 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: PureObject - PureBasic OOP support
PostPosted: Tue Dec 25, 2007 3:04 am 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2004 4:28 pm
Posts: 406
Location: Cologne/GER
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:

Image

Image

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

_________________
Check out OOP support for PB here!


Last edited by inc. on Mon Jan 21, 2008 12:30 pm, edited 5 times in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 25, 2007 4:30 am 
Offline
Addict
Addict

Joined: Wed Aug 24, 2005 8:39 am
Posts: 2736
Location: Southwest OH - USA
Wow :D This will take some study.

Many thanks and a merry Christmas to you too :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 25, 2007 4:40 am 
Offline
Addict
Addict

Joined: Mon May 29, 2006 1:01 am
Posts: 1965
Location: Outback
Thank you for the Christmas present!

Will play with it in the next few days.

Merry Christmas to you.


Edit:

After a very quick glance at the docs, this looks like everything it promises to be. Very nice indeed!

_________________
Dare2 cut down to size


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 25, 2007 5:35 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 25, 2006 4:23 pm
Posts: 360
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.

_________________
This field was left intentionally as signature.


Top
 Profile  
Reply with quote  
 Post subject: Re: Just an object orientated Christmas gift
PostPosted: Tue Dec 25, 2007 11:50 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
inc. wrote:
PS: @Gnozal, ... could it be done that new individual user folding keywords in jaPBe also could come with indentation support?

EDIT : since some time now, jaPBe supports custom indentation and folding.
Have a look at Preferences --> Indentation/Completion

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Last edited by gnozal on Sat Apr 04, 2009 7:31 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 25, 2007 12:42 pm 
Offline
Addict
Addict
User avatar

Joined: Mon May 14, 2007 2:13 am
Posts: 979
Location: Darling River
Thanks inc. And a happy new OOP year. :D

_________________
PureBasic Rocks! Even More! And More!
PureBasic 5, Now We're Really Rockin!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 25, 2007 12:57 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 09, 2003 10:08 pm
Posts: 659
Location: Nottingham
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.

_________________
Anthony Jordan


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 25, 2007 1:29 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2004 4:28 pm
Posts: 406
Location: Cologne/GER
Thank you! Corrected.

As Im not a native english speaker I do apreciate all suggestions regarding using correct english words and grammar.
Thanks.

_________________
Check out OOP support for PB here!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 25, 2007 2:12 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 05, 2007 12:15 am
Posts: 894
Location: Nuremberg, Germany
This looks very promising :P
Installing now...

_________________
Windows 7 & PureBasic 4.4


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 26, 2007 3:55 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jul 25, 2005 3:51 pm
Posts: 3496
Location: Utah, USA
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.


You could call it PrOOF for PureBasic Object Oriented Finally. So much for wordplay. :wink:

Disclaimer: This is said to neither affirming or condem using OOP in PureBasic, use what works for you. 8)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 26, 2007 8:57 am 
Offline
User
User

Joined: Tue Feb 15, 2005 5:15 pm
Posts: 74
Thanks inc! Works great.

npath


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 26, 2007 9:58 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 30, 2006 4:30 pm
Posts: 578
Location: Middle East
Thanks for the hardwork. Merry Christmas!

_________________

[Registered PB User since 2006]
[PureBasic 5.5] [Win 10 64bit]
[Intel i7 990x 3.47 Ghz] [18GB DDR3]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 26, 2007 8:20 pm 
Offline
User
User

Joined: Thu May 11, 2006 1:45 am
Posts: 45
Location: florida
Thank you!
Great work!!
Merry Christmas!!!

_________________
Leopard-parallels-XP-Vista


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 26, 2007 8:55 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6044
Demivec wrote:
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.


You could call it PrOOF for PureBasic Object Oriented Finally. So much for wordplay. :wink:

Disclaimer: This is said to neither affirming or condem using OOP in PureBasic, use what works for you. 8)


Euh, shouldn't that be POOF then?

:twisted:

Actually, I like the name 'POOP'. It kinda', well, sticks...

:twisted:

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 26, 2007 10:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Feb 12, 2006 10:06 pm
Posts: 629
why not P-BOOP? reminds me somewhat of Erfworld

_________________
there is no sig, only zuul (and the following disclaimer)

WARNING: may be talking out of his hat


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 95 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye