Easy OOP features
Posted: Tue May 30, 2006 9:15 pm
I know it's currently theoretically possible to do OOP in PureBasic. The problem is, the code becomes completely unreadable, highly error-prone, and it's just very difficult to get it to work at all...
How about adding some OOP features that novice users would have a chance of using and understanding?
Look at VBScript, for example - OOP is extremely easy to learn and put to good use here, and it's not like the language is any harder to learn.
But even a very limited and simplistic OOP functionality like VBScript has, would enable you to easily structure very large programs. And would bring new power and possibilities to the PureBasic language.
For example, the Visual Designer could generate a base class for your application, instead of generating code that you have to edit; you would simply extend the generated class, and never again edit the base class code manually...
How about adding some OOP features that novice users would have a chance of using and understanding?
Look at VBScript, for example - OOP is extremely easy to learn and put to good use here, and it's not like the language is any harder to learn.
But even a very limited and simplistic OOP functionality like VBScript has, would enable you to easily structure very large programs. And would bring new power and possibilities to the PureBasic language.
For example, the Visual Designer could generate a base class for your application, instead of generating code that you have to edit; you would simply extend the generated class, and never again edit the base class code manually...