Classes in pureBasic

Everything else that doesn't fall into one of the other PB categories.
axisdj
User
User
Posts: 20
Joined: Tue Dec 19, 2017 7:03 pm

Classes in pureBasic

Post by axisdj »

Sorry everyone this will be the last one for a while.

Really trying to get this project started moving from vb6

I am NO proponent of FAD OOP design, BUT over the years I have gotten fond of using classes as an organizational tool, and using object composition.

I have done some online research on how people are creating classes in pureBasic, I would like to know what is your preferred method of creating classes in pureBasic?

All my classes do is keep variables, perform functions on those variables and trigger events. No inheritance, overloading, or other special stuff.

Any advice would be greatly appreciated.

Thank you!
User avatar
mk-soft
Always Here
Always Here
Posts: 5401
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Classes in pureBasic

Post by mk-soft »

Using OOP in Purebasic is actually quite easy.
I have this link for that: http://www.purebasic.fr/english/viewtop ... 13&t=64731

For more complex tasks, my OOP-BaseClass module can also be used. :wink:
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