Sujet : Re: Overcoming the proof of undecidability of the Halting Problem by a simple example in C
De : rjh (at) *nospam* cpax.org.uk (Richard Heathfield)
Groupes : comp.theoryDate : 16. May 2025, 16:48:56
Autres entêtes
Organisation : Fix this later
Message-ID : <1007mp8$3r37u$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 16/05/2025 16:10, olcott wrote:
<snip>
void DDD()
{
HHH(DDD);
return;
}
Anyone that knows C can tell that when HHH does simulate
DDD correctly that it keeps getting deeper in recursive
simulation until aborted or OOM error.
Anyone who knows C knows that there isn't much HHH can do with the pointer value it's given. It can call DDD:
(*p)();
or it can pass its value to another function, or it can store its value in an object of the appropriate type.
That's it. Anything else it does with it leaves the rules of C far behind. C won't stop you playing the games you want to play, but you are no longer playing C.
So anyone that knows C can tell that the rules of C don't work the way you want them too.
-- Richard HeathfieldEmail: rjh at cpax dot org dot uk"Usenet is a strange place" - dmr 29 July 1999Sig line 4 vacant - apply within