Thanks for the report,
I'll get into it. ... It could be an issue of the lexer used by PureObject.
PureObject - PureBasic OOP support
Re: PureObject - PureBasic OOP support
Check out OOP support for PB here!
Re: PureObject - PureBasic OOP support
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?
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
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
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: PureObject - PureBasic OOP support
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?
I found that you programmed some OOP preprocessor time ago. Don't you publish it anymore?
Re: PureObject - PureBasic OOP support
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 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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive