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,comp.lang.c++ Subject: Re: Switching to C# Date: Sun, 16 Jun 2019 14:27:36 -0700 Organization: None to speak of Lines: 20 Message-ID: References: <5d03bb38.3305609877@core> <5d059fdf.3429680737@core> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="df4904b93ef33b63818a6c0a0a5ba2e4"; logging-data="17531"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lctniZDMJE8VMMYUapLfJ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:ethM7fWb1mMJVqBjmoFoM28Arrc= sha1:wxnuUoz6AfCb+yAflU+KFlE7dV8= Xref: csiph.com comp.lang.c:144932 comp.lang.c++:66488 David Brown writes: > On 16/06/2019 03:58, Scott wrote: [...] >> C does allow implicit declarations. You can call a previously >> undeclared function, and C will trust that the types you're passing >> are the types the function's expecting. I think it's a bad idea, and >> it usually yields warnings suggesting that it's a bad idea. I think >> any form of implicit typing is a bad idea. >> > > It is worth being clear here that implicit declarations don't let you > use functions properly before declaring them. It's even more worth being clear that C does not permit implicit declarations, and hasn't since 1999. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */