Liste des Groupes | Revenir à c theory |
Op 15.jun.2024 om 16:48 schreef olcott:Not at all. The original definition still applies when itOn 6/15/2024 9:37 AM, Fred. Zwarts wrote:So, you agree that you are changing definitions.>>
Is this the new definition of "pathological"?
*It is the same thing that I have been saying all along*
>
00 typedef void (*ptr)(); // pointer to void function
01
02 int HH(ptr P, ptr I);
03
04 void DDD(int (*x)())
05 {
06 HH(x, x);
07 return;
08 }
09
10 int main()
11 {
12 HH(DDD,DDD);
13 }
>
Line 12 main()
invokes HH(DDD,DDD); that simulates DDD()
>
*REPEAT UNTIL outer HH aborts*
Line 06 simulated DDD()
invokes simulated HH(DDD,DDD); that simulates DDD()
>
DDD correctly simulated by HH never reaches its own "return"
instruction and halts.
Les messages affichés proviennent d'usenet.