Deutsch English Français Italiano |
<v7013v$2ccv$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Mikko <mikko.levanto@iki.fi> Newsgroups: comp.theory Subject: Re: Who here understands that the last paragraph is Necessarily true? Date: Sun, 14 Jul 2024 11:09:35 +0300 Organization: - Lines: 48 Message-ID: <v7013v$2ccv$1@dont-email.me> References: <v6un9t$3nufp$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 14 Jul 2024 10:09:35 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9a92efa79bf89cf93bddcd1bb941165c"; logging-data="78239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195mRkoUOaY0l2YeGUBNBeg" User-Agent: Unison/2.2 Cancel-Lock: sha1:g6Tv6PjSGswtqkD/uO4jSdA7USQ= Bytes: 1753 On 2024-07-13 20:15:56 +0000, olcott said: > typedef void (*ptr)(); > int HHH(ptr P); > > void Infinite_Loop() > { > HERE: goto HERE; > } > > void Infinite_Recursion() > { > Infinite_Recursion(); > } > > void DDD() > { > HHH(DDD); > } > > int main() > { > HHH(Infinite_Loop); > HHH(Infinite_Recursion); > HHH(DDD); > } > > Any input that must be aborted to prevent the non > termination of HHH necessarily specifies non-halting > behavior or it would never need to be aborted. Everyone understands that DDD specifies a halting behaviour if HHH(DDD) does, as can be verified by running #include <stdio.h> int main(void) { printf("calling HHH(DDD)\n"); HHH(DDD); printf("HHH(DDD) halted\n"); printf("calling DDD()\n"); DDD(); printf("DDD halted\n"); return 0; } -- Mikko