cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/02/09:47:01

Newsgroups: comp.os.msdos.djgpp,comp.lang.c
From: Richard Rensman <rensman AT fys DOT ruu DOT nl>
Subject: Re: Functions in struct's... possible? How?
Sender: usenet AT fys DOT ruu DOT nl (News system Tijgertje)
Message-ID: <340BF8B7.69C3@stud.warande.ruu.nl>
Date: Tue, 2 Sep 1997 11:29:59 GMT
References: <33FCDA5C DOT 2353659F AT execulink DOT com> <5tippg$ci7$2 AT news DOT sendit DOT nodak DOT edu> <5tkq9a$2se$1 AT helios DOT crest DOT nt DOT com> <5tmcai$nuo$1 AT news DOT sendit DOT nodak DOT edu> <340B1E27 DOT 44FAD207 AT alcyone DOT com>
Mime-Version: 1.0
Organization: Physics and Astronomy, University of Utrecht, The Netherlands
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019