Mail Archives: djgpp/1997/09/09/08:04:28
Richard Rensman wrote:
> 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.
This is true. However, the question wasn't, "How do I do X in DJGPP?"
The question was with respect to a specific language, and so the answer
ought to be in that language.
It's one thing if you're asking to do something that is _impossible_ in
the language in question. The question was about "functions in
structs," and the answer is function pointers. As such there is a very
clear and definite answer. No need to send the poster on false trails
(false in that C++ is not necessary to achieve their goal, which is not
what such an answer suggests).
> If you find yourself using C++ concepts in C more and more often it
> might not be a bad idea to switch languages.
Yes, it might not be. However, "functions in structs" doesn't
necessarily immediately bring the conclusion that that is what is
happening here. There's a lot more to object orientation than that.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://37.20.07n/121.53.38w
\
"War is like love; / it always finds a way."
/ Bertolt Brecht
- Raw text -