Fantastic. Now you get the burden of accessing these structure members 
without even getting the benefit of C++. You'll have to mimic the 
constructor/destructor mechanism. You'll have to play the setjmp() game 
if you want to do exceptions. You'll need to define function pointers 
if you want to create virtual methods. And I don't even want to think 
of how you're going to program stack-based objects with automatic 
destruction when getting out of scope...

And when you've done all that, doesn't it come to mind that it would 
have been simpler to directly write the code in C++?

A programming language is only as good as the developer using it. If 
you think that C++ is not for you, DON'T USE IT. There are enough 
people thinking this is a language for them and who end up writing 
crappy code... ;-)

Florent.

On vendredi, oct 4, 2002, at 19:10 Europe/Paris, Idries Hamadi wrote:

> This is a C implementation of an Object Oriented Design which involves
> inheritance.
>
-- 
Florent Pillet, Code Segment       [EMAIL PROTECTED]
Developer tools and end-user products         ICQ: 117292463
Palm, Mac, Unix, Windows     http://perso.wanadoo.fr/fpillet


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to