Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: H&S (WAS: meaning of continue) Message-ID: <493@taumet.com> Date: 30 Oct 90 15:54:45 GMT References: <6065@raksha.eng.ohio-state.edu> <6ecTR1w161w@phoenix.com> <27261@mimsy.umd.edu> <16103:Oct3003:39:4890@kramden.acf.nyu.edu> Organization: Taumetric Corporation, San Diego Lines: 18 brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: >I don't think I've ever used an enum. Why not? Because they aren't in >the language I think of as C. The result? My code is more portable. >Would this be true if I used H&S as a reference? I doubt it. Sounds like you have never actually read H&S. They are careful to describe what was in old versions of C, common extensions, and what to do for the most portable code in cases where compilers have diverged (as with enums). So the answer to your last question, your code is likely to be very portable among pre-ANSI compilers if you read and follow the advice in H&S. (If you are fortunate enough to be able to use ANSI compilers, you can be sure of code portability with a much wider range of language features.) -- Steve Clamage, TauMetric Corp, steve@taumet.com