[DGD] Why C instead of C++
Felix A. Croes
felix at dworkin.nl
Mon Oct 26 13:44:36 CET 1998
Marc Spoorendonk <marc at freud.et.tudelft.nl> wrote:
> I was coding some stuff (a stringlib) in C++ (I'm fairly new to C++) and i
> wondered why the dgd driver doesn't use C++ for its strings and objects.
> Especially the operator overloading seems really useful to me.
>
> I'm sure that you have your reasons for this but i don't know them. Could
> you please tell me what the disadvantages of C++ are in this case?
C++ is not as well-defined as C. No two implementations of C++
compilers are the same. This makes C++ a bad choice for writing
portable software.
If I were to write DGD from scratch now, I would still use C rather
than C++. However, I would use ANSI C rather than K&R C.
Regards,
Dworkin
More information about the DGD
mailing list