Re: Incorrect requirements --- Computing the mapping from the input to HHH(DD)

Liste des GroupesRevenir à cl c 
Sujet : Re: Incorrect requirements --- Computing the mapping from the input to HHH(DD)
De : polcott333 (at) *nospam* gmail.com (olcott)
Groupes : comp.theory
Date : 09. May 2025, 00:59:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvjgh7$28g5i$4@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Mozilla Thunderbird
On 5/8/2025 6:49 PM, Keith Thompson wrote:
olcott <polcott333@gmail.com> 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?).
 
For the purpose of this discussion HHH is exactly
what I said it is. It correctly simulates DDD.
We need not know anything else about HHH to
know that DDD correctly simulated by HHH cannot
possibly REACH its own "return" instruction.

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.)
 
I am using Microsoft Visual Studio 2017.
It compiled cleanly.
--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Date Sujet#  Auteur
26 May 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal