PureObject - PureBasic OOP support

Developed or developing a new product in PureBasic? Tell the world about it.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Re: PureObject - PureBasic OOP support

Post by inc. »

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!
Osmdesat
New User
New User
Posts: 7
Joined: Wed Mar 28, 2018 6:13 pm

Re: PureObject - PureBasic OOP support

Post by Osmdesat »

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?
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureObject - PureBasic OOP support

Post by mk-soft »

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 / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Osmdesat
New User
New User
Posts: 7
Joined: Wed Mar 28, 2018 6:13 pm

Re: PureObject - PureBasic OOP support

Post by Osmdesat »

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?
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureObject - PureBasic OOP support

Post by mk-soft »

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 / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply