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?
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 163:56:55 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,513 |