Re: Every D(D) simulated by H presents non-halting behavior to H ###

Liste des GroupesRevenir à c theory 
Sujet : Re: Every D(D) simulated by H presents non-halting behavior to H ###
De : agisaak (at) *nospam* gm.invalid (André G. Isaak)
Groupes : comp.theory
Date : 19. May 2024, 03:58:50
Autres entêtes
Organisation : Christians and Atheists United Against Creeping Agnosticism
Message-ID : <v2bptb$36ei8$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Mozilla Thunderbird
On 2024-05-17 18:24, olcott wrote:
On 5/17/2024 6:15 PM, André G. Isaak wrote:
On 2024-05-17 17:00, olcott wrote:
On 5/17/2024 3:02 PM, Alan Mackenzie wrote:
>
That "program" doesn't compile.  It's ill-formed.
>
This does compile under C17 and C11
with Microsoft Visual Studio 2022
 >
*Maybe you forgot to take the line numbers out*
*Maybe you forgot to take the line numbers out*
*Maybe you forgot to take the line numbers out*
*Maybe you forgot to take the line numbers out*
>
typedef int (*ptr)();
int H(ptr P, ptr I);
>
But that's not the code you provide in your numerous previous posts where you insist on
>
int H(ptr x, ptr x);
>
Maybe when people point out that there is an error you should actually proofread what you wrote.
>
[remaining code deleted].
>
André
>
 *Whoops my mistake*
*Whoops my mistake*
*Whoops my mistake*
*Whoops my mistake*
 Thanks for your review.
 I couldn't see my mistake when I tried to compile it
so I used an old trick, refactor from working code.
I still didn't see my mistake, yet got it to compile.
You're missing the point. This error had been pointed out to you multiple times by multiple posters. Alan even pointed out the *specific* compiler errors which it generated under GCC. Yet you refused to correct it for weeks on end, insisting that everyone else was wrong.
A competent C programmer wouldn't have run into this issue since they would have declared the function as something like:
int H(ptr programDescription, ptr programInput); // no silly x and y
Yet you continue to question everyone else's 'C-credentials' when you are the one making very basic errors. That hardly inspires confidence in anything else you might say about C.
André
--
To email remove 'invalid' & replace 'gm' with well known Google mail service.

Date Sujet#  Auteur
17 May 24 * Re: Every D(D) simulated by H presents non-halting behavior to H ###21Alan Mackenzie
18 May 24 +* Re: Every D(D) simulated by H presents non-halting behavior to H ###19olcott
18 May 24 i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###18André G. Isaak
18 May 24 i +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
18 May 24 i +* Re: Every D(D) simulated by H presents non-halting behavior to H ###12olcott
19 May 24 i i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###11André G. Isaak
19 May 24 i i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###10olcott
19 May 24 i i  +* Re: Every D(D) simulated by H presents non-halting behavior to H ###8immibis
19 May 24 i i  i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###7olcott
19 May 24 i i  i +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
19 May 24 i i  i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###5immibis
19 May 24 i i  i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###4olcott
19 May 24 i i  i   +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
20 May 24 i i  i   `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2immibis
20 May 24 i i  i    `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Mikko
19 May 24 i i  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
18 May 24 i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###4olcott
18 May 24 i  +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
18 May 24 i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Fred. Zwarts
18 May 24 i   `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
18 May 24 `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal