Guy Harris wrote:
> 
> The Base Document was Ritchie's "The C Reference Manual", one version of
> which was Appendix A of the original (first edition) K&R.  I don't have
> my K&R version 1 handy, so I don't know whether it allowed commas at the
> end of an enum list; if it didn't, I don't know why it didn't, as the
> arguments in favor of allowing trailing commas in initializers would
> seem to me to apply to enum lists as well.

It didn't becuase the first edition of K&R did not discuss enum at all. 
I just checked the index and App A to be sure.  enums are a "new"
invention.  I remember programmin in Version 6 UNIX and not having them
or some other interesting features. Various versions of C after that
added enums and // comments.  Some of the added features went away in
later compilers...

--john

-- 
John McDermott, Writer and Consultant
J-K International, Ltd.
V +1 505/377-6293  F +1 505/377-6313
[EMAIL PROTECTED]


Reply via email to