Marlin wrote:As far, as I'm concerned, it is not about restrictions at all,
but about an easy way for clean, orderly programming.
But it is. You can write Code with "Interfaces" like you write it in
C++. Yes, there are some missing functionality in Interfaces like
full inheritance or a missing "class"-keyword.
What the problem is, there are no restrictions in manipulating
the "interface-objects" and you can call any procedure at any point.
No restricted scopes of procedures possible.
The lack of restrictions to have to write code OOP-like is what all
are missing. You can write code like Trond has posted it. And a
second developer can change anything. Changes that shouldn't
possible in OOP.
Java is an example of a language, that has this restrictions, but
allows procedural code. So you aren't forced to use OOP, but
it is good practice. OOP is nothing special. I mean, i can write code
OOP like or procedural, it is all the same for me. Other people
can not jump between OOP and procedural. Some need OOP, some
doesn't understand the case and want procedural or something else.
If PureBasic learns OOP, i think i will use it too. Sometimes. But
for big projects, OOP is not always the best choice. It is the language
itself what makes the difference. If you need OOP, then use a OOP-
language. I doesn't have a problem, when someone doesn't use PB.
A language is nothing more than a tool. You doesn't use a unhandy
hammer if you want it handy.
What would more help than full OOP-restrictions is something like this:
Modules
MFG PMV