Mail Archives: djgpp/1997/09/02/09:47:01
Erik Max Francis wrote:
> The original question was, "How do I do X in language Y?" The answer to
> the question is never "Use language Z."
Maybe not on comp.lang.c.
Answering "If you're going to do X often with language Y you might
consider using language Z" is perfectly valid here on
comp.os.msdos.djgpp, however. This is not a C language forum, and djgpp
is not merely a C compiler.
If asked "How do I write a keyboard handler in C", replying "It might be
easier to write it in asm and link it in" is perfectly valid. It is not
the *only* answer, but it is equally valid in that it solves the problem
at hand.
It is however inappropriate to say "Use Watcom C/C++" if a question is
posted on "How do I do X in language Y" here, unless the problem
absolutely cannot be solved without Watcom.
If you find yourself using C++ concepts in C more and more often it
might not be a bad idea to switch languages. If you find yourself
stuffing structs with function pointers and copy-pasting portions of
them to form new, different structs, it is not a bad idea to pick up a
book on C++ and learn about classes and inheritance. That is advice that
is never wasted.
- Raw text -