Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: rational numbers Date: Wed, 22 Sep 2021 14:13:39 -0700 Organization: None to speak of Lines: 13 Message-ID: <87fstwmhz0.fsf@nosuchdomain.example.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b5fd9637bf49c8f43a3bd672d60f3caf"; logging-data="1329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c3sASwVIrv8Xd955zrir0" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:ZNDzlCWoME4j1oBSD43hd9eq/uM= sha1:lR6HHj2IOqitAPObRMs42l0NpaQ= Xref: csiph.com comp.lang.c++:81430 HorseyWorsey@the_stables.com writes: [...] > But then someone who writes "auto main() -> int" instead of "int main()" > and then forgets the return value at the end anyway is probably not someone > who writes sensible code. Were you not aware that reaching the closing "}" of main() does an implicit "return 0;"? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */