OOP... If You Don't Wanna Hear It From Me...

Miscellaneous Forums/General Discussion/OOP... If You Don't Wanna Hear It From Me...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I think the way I code is already very OOP. I have many classes made with banks, and some of them have identical properties:
Const CLASS_CAMERA=1
Const CAMERA_POSITIONX=4
Const CAMERA_POSITIONY=8
Const CAMERA_POSITIONZ=12

Const CLASS_PLAYER=2
Const PLAYER_POSITIONX=4
Const PLAYER_POSITIONY=8
Const PLAYER_POSITIONZ=12

Then I can call a "MoveObject" command that works on both camera and player classes. That was basically just a case of inheritance.

However, I think formal derivative types are a waste of time. I also think integer bank handles are a lot nicer to pass around than special type variables that only work in Blitz.