• Enter EE. What should HHH(DD) return now?

    From Richard Heathfield@21:1/5 to All on Tue Aug 26 21:10:30 2025
    int DD()
    {
    int Halt_Status = HHH(EE);
    if (Halt_Status)
    HERE: goto HERE;
    return Halt_Status;
    }

    int EE()
    {
    int Halt_Status = HHH(EE);
    if (Halt_Status)
    HERE: goto HERE;
    return Halt_Status;
    }


    int main()
    {
    Output("Input_Halts = ", HHH(DD));
    }

    What should HHH(DD) return to main now?

    --
    Richard Heathfield
    Email: rjh at cpax dot org dot uk
    "Usenet is a strange place" - dmr 29 July 1999
    Sig line 4 vacant - apply within

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mikko@21:1/5 to Richard Heathfield on Wed Aug 27 10:33:40 2025
    On 2025-08-26 20:10:30 +0000, Richard Heathfield said:

    int DD()
    {
    int Halt_Status = HHH(EE);
    if (Halt_Status)
    HERE: goto HERE;
    return Halt_Status;
    }

    int EE()
    {
    int Halt_Status = HHH(EE);
    if (Halt_Status)
    HERE: goto HERE;
    return Halt_Status;
    }


    int main()
    {
    Output("Input_Halts = ", HHH(DD));
    }

    What should HHH(DD) return to main now?

    The choice of names is not good. The EE above is like Olcott's DD
    but the DD above is new. The opposite nameing would have been better.

    --
    Mikko

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Damon@21:1/5 to olcott on Wed Aug 27 21:54:05 2025
    On 8/27/25 10:41 AM, olcott wrote:
    On 8/27/2025 2:33 AM, Mikko wrote:
    On 2025-08-26 20:10:30 +0000, Richard Heathfield said:

    int DD()
    {
       int Halt_Status = HHH(EE);
       if (Halt_Status)
         HERE: goto HERE;
       return Halt_Status;
    }

    int EE()
    {
       int Halt_Status = HHH(EE);
       if (Halt_Status)
         HERE: goto HERE;
       return Halt_Status;
    }


    int main()
    {
       Output("Input_Halts = ", HHH(DD));
    }

    What should HHH(DD) return to main now?

    The choice of names is not good. The EE above is like Olcott's DD
    but the DD above is new. The opposite nameing would have been better.


    That merely adds extraneous complexity that makes
    the basic ideas more difficult to understand.


    In other words, you admit that you can't answer it with an answer that
    your program will give, becuase your logic just can't lie that well.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)