On Thu, Mar 13, 2003 at 01:07:31AM +0100, Andreas Happe wrote:where's the advantage over a structure with pointer to functions (except inheritance, which could be emulated, no I don't like vpointer tables ;))
Functionally, there is none. It's a straightforward transition from what Ion's using at the moment. The advantage is that you can let the language do much of the housekeeping for you, so you can concentrate on other things.
like what? don't forget that we're talking on a rather low level in that case, so things like exceptions should even be mentioned.
I've access protection is not needed it should never get into ion. As i've stated before it is possible to create object oriented programms without using oo languages.
Agreed. OOP is _possible_ in any sensible language (Turbo Assembler supported OOP, back in the day). The difference is whether it's _easy_ or _hard_. All the evidence is that in C it's _hard_ and _messy_ (case study: gtk) and in C++ it's _easier_ and _less messy_ (case study: Qt).
it depends on how hard you try to be object oriented. As object orientation for itself isn't that goal for ion we could just pick out the cherries.
[ OT: i prefer the gtk interface over the qt one ]
[Off topic: If you _really_ want to do OOP then experience the wonders of Ruby and Smalltalk. I use Ruby a lot and reckon that one line of Ruby is worth ~100 lines of C++ and ~250 lines of C.]
same could be said about perl. Yeah, I know some languages, but there's the right tool for every task out there and i believe that normal C should be enough for ion.
[performance]
These checks are enforced at compile time in C++ so there is no penalty.
*knock* (head hits desk)
But Ion doesn't interface to anything but itself and maybe a couple of modules so access checks are a design overkill.
things i would pick from c++: * syntactical sugar * inline functions * assertions
combined with more documentation and some code clean - ups the ion source should be very easy to read.
Regards,
Tom
Andreas
--
15. I will never employ any device with a digital countdown. If I find that such a device is absolutely unavoidable, I will set it to activate when the counter reaches 117 and the hero is just putting his plan into --Peter Anspach's list of things to do as an Evil Overlord
