Re: Only C programmers tell the truth about the behavior of DD simulated by HHH

Liste des GroupesRevenir à theory 
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.c
Date : 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.

Date Sujet#  Auteur
24 May 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal