Sujet : Re: Only C programmers tell the truth about the behavior of DD simulated by HHH
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 17. Apr 2025, 16:44:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vtr7jj$uukr$1@raubtier-asyl.eternal-september.org>
References : 1
User-Agent : Mozilla Thunderbird
Am 17.04.2025 um 17:38 schrieb olcott:
typedef void (*ptr)();
int HHH(ptr P);
int DD()
{
int Halt_Status = HHH(DD);
if (Halt_Status)
HERE: goto HERE;
return Halt_Status;
}
int main()
{
HHH(DD);
}
DD simulated by HHH includes HHH simulating itself
simulating DD until HHH sees the non-terminating
pattern and rejects DD as non-terminating.
What you do is like thinking in circles before falling asleep.