Page 1 of 1

Classes in pureBasic

Posted: Mon Jan 15, 2018 6:38 pm
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!

Re: Classes in pureBasic

Posted: Mon Jan 15, 2018 7:55 pm
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: