It is currently Sun Jan 24, 2021 12:19 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7
Author Message
 Post subject: Re: PureObject - PureBasic OOP support
PostPosted: Sun Feb 07, 2010 8:56 am 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2004 4:28 pm
Posts: 406
Location: Cologne/GER
Thanks for the report,

I'll get into it. ... It could be an issue of the lexer used by PureObject.

_________________
Check out OOP support for PB here!


Top
 Profile  
Reply with quote  
 Post subject: Re: PureObject - PureBasic OOP support
PostPosted: Wed Mar 28, 2018 8:13 pm 
Offline
New User
New User

Joined: Wed Mar 28, 2018 6:13 pm
Posts: 7
I'm just playing with PureBasic Demo and I am interested in OOP, too.
Is PureObject plugin still under maintenance?
Website seems to be down, so I had to download the plugin 1.0 rev 72 from archive.org.
Installed it in PureBasic Demo 5.42, but unfortunately it tells "native types can't be used with pointers", when compiler encounters a variable declaration in a Class header (the variable declared in Class statement is not a pointer at all!).
Is it solveable, or is it just given by some changes in the later versions of PB compiler, making unpatched PureObject plugin unusable?
Or are some other working OOP plugins out there?


Top
 Profile  
Reply with quote  
 Post subject: Re: PureObject - PureBasic OOP support
PostPosted: Wed Mar 28, 2018 10:12 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2819
Location: Germany
As it looks, the project has been discontinued.
It is better to create your own objects according to the syntax of Purebasic.
Here I made a small introduction to this topic.
But is in German.

Link: http://www.purebasic.fr/german/viewtopi ... =9&t=30603

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: PureObject - PureBasic OOP support
PostPosted: Thu Mar 29, 2018 10:19 pm 
Offline
New User
New User

Joined: Wed Mar 28, 2018 6:13 pm
Posts: 7
Thanks, your example looks good, although not everything I understood. Complication is, that it's necessary to always write there all the background implementation.
I found that you programmed some OOP preprocessor time ago. Don't you publish it anymore?


Top
 Profile  
Reply with quote  
 Post subject: Re: PureObject - PureBasic OOP support
PostPosted: Fri Mar 30, 2018 10:05 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2819
Location: Germany
I also crushed the precompiler after I found out that it can be solved with macros.

My goal with purebasic is to create objects as easily as possible and not to implement a new OOP language in purebasic. Purebasic has everything and it is the same effort as with pure'C' to program an object.

Look at my signature OOP-BaseClass.
This provides all the necessary basic functions.

P.S. The idea is to write a new precompiler to make it even easier.

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 20 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