Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: The big problem of C Date: Tue, 07 Apr 2020 09:17:20 -0700 Organization: None to speak of Lines: 18 Message-ID: <874ktvmfsf.fsf@nosuchdomain.example.com> References: <92fc2d76-4eaa-4fab-b188-d63eec8c3429@googlegroups.com> <3d8e2795-e575-406e-b3c3-d3acd01e6567@googlegroups.com> <321fcebb-c737-4178-b9dc-68af0cb10271@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="37e3123c028ba5f9875b02f908baebe3"; logging-data="22432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RL+TA3e81zZlQNZHsVU8Q" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:H5PUXEbaTqJsAv0crLqbm/tQoPQ= sha1:wPFa7mhwtl5X6RUzrcsBHwq12G0= Xref: csiph.com comp.lang.c:151191 already5chosen@yahoo.com writes: [...] > IMHO adding facility based on implicit pattern matching, like C++ > templates, is a bad idea. But something more explicit, along the lines > of Ada-83 Generic packets is not against a spirit of C language. Of > course, except that in C variant it should me made clear that generic > packets have to be textually included and there are no requirements > for their separate compilation. I think you mean generic packages, not packets. And they're not specific to Ada 83. They exist in later versions of the language, and they still require explicit instantiation. (And Ada also has other generic program units, such as functions and procedures.) -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */