Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.theory Subject: Re: Incorrect requirements --- Computing the mapping from the input to HHH(DD) Date: Thu, 08 May 2025 16:49:24 -0700 Organization: None to speak of Lines: 28 Message-ID: <87a57mek8r.fsf@nosuchdomain.example.com> References: <87msbmeo3b.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 09 May 2025 01:49:25 +0200 (CEST) Injection-Info: dont-email.me; posting-host="302a6dd640940106301f9e87fdade96e"; logging-data="2375298"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tHVPR6B5L1CveNCn60Z4Z" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:psGn1U2+mlgugBC/cnyKJ9j+whc= sha1:Mur/HX/vUyySb2q7g93FTiGkdFA= Xref: csiph.com comp.theory:118066 olcott writes: [...] > void DDD() > { > HHH(DDD); > return; > } > > If you are a competent C programmer then you > know that DDD correctly simulated by HHH cannot > possibly each its own "return" instruction. "cannot possibly each"? I am a competent C programmer (and I don't believe you can make the same claim). I don't know what HHH is. The name "HHH" tells me nothing about what it's supposed to do. Without knowing what HHH is, I can't say much about your code (or is it pseudo-code?). The return statement is harmless but unnecessary. "void DDD()" should be "void DDD(void)" (unless you're using C23, but we've established that your not). Why did you choose to use empty parentheses? (If you answer nothing else, please answer that.) -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */