V4 - OOP

Share your advanced PureBasic knowledge/code with the community.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

fsw wrote:Destroy (or Close - didn't decide yet)
Close = used opposite to Open and usually applies only to windows/application objects.

Destroy = used opposite to Create and usually applies to gadgets/objects.

HTH

BTW, fsw, how is your OOP plug-in/lib/include project coming? Is there a place we can download it? Sorry, if I missed something but there are like 4 active OOP threads active right now and I am started to lose my mind.
Image Image
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Straker wrote:
fsw wrote:Destroy (or Close - didn't decide yet)
Close = used opposite to Open and usually applies only to windows/application objects.

Destroy = used opposite to Create and usually applies to gadgets/objects.
Thanks for the hint.
Straker wrote: BTW, fsw, how is your OOP plug-in/lib/include project coming? Is there a place we can download it? Sorry, if I missed something but there are like 4 active OOP threads active right now and I am started to lose my mind.
It's working, but on hold.
The reason for that is that I had to write the whole Interface / Structure / DataSection manually and it was really time consuming (still not done yet).

So I thought, why not make a Little Class Parser that does the work for you? Bottomline: the code needed a rewrite.

So I started to write a quick and dirty parser that worked fine for the intended use (it's posted on Tips&Tricks).

Now, as Remi observed this little class parser needs a rewrite by itself to be more flexible and expandable...

Oh well...
Straker wrote: HTH
BTW what does that mean?
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

fsw wrote:
Straker wrote: HTH
BTW what does that mean?
Hasselhoff to help?
--Kale

Image
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

fsw wrote:
Straker wrote: HTH
BTW what does that mean?
Hope this helps.

or Hasselhoff works in this forum.
Image Image
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: V4 - OOP

Post by Psychophanta »

I translated this code to not OOP PB code, because is much more clear and useful to me the NOT OOP (and faster because the use of macros instead of procedures).
I post it here because it is a clear OOP example, and just in case some of you want to get it to PB in its OOP format.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply