Page 7 of 7
Re: PureObject - PureBasic OOP support
Posted: Sun Feb 07, 2010 8:56 am
by inc.
Thanks for the report,
I'll get into it. ... It could be an issue of the lexer used by PureObject.
Re: PureObject - PureBasic OOP support
Posted: Wed Mar 28, 2018 8:13 pm
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?
Re: PureObject - PureBasic OOP support
Posted: Wed Mar 28, 2018 10:12 pm
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
Re: PureObject - PureBasic OOP support
Posted: Thu Mar 29, 2018 10:19 pm
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?
Re: PureObject - PureBasic OOP support
Posted: Fri Mar 30, 2018 10:05 am
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.