The problem is not C, and nobody needs to lie about it.
On 11/1/2026 8:35 AM, olcott wrote:
typedef int (*ptr)();The above statement is unclear
int HHH(ptr P);
01 int DD()
02 {
03ÿÿ int Halt_Status = HHH(DD);
04ÿÿ if (Halt_Status)
05ÿÿÿÿ HERE: goto HERE;
06ÿÿ return Halt_Status;
07 }
08
09 void main()
10 {
11ÿ HHH(DD);
12 }
The C / C++ groups are the only people in the
world that did not flat out lie about this question:
Does DD simulated by HHH ever reach its own "return"
statement while DD is being simulated by HHH?
as "DD" and "HHH" could be referring to:
* an algorithm, i.e. a fixed immutable sequence of instructions that
always generates the same output for a given input.
* a C function, i.e. a named address that can contain any arbitrary set
of instructions in sequence
* a finite string, i.e. a 32-bit function pointer which is the starting address of a C function.
So please clarify whether each use of "HHH" and "DD" in the above
sentence refers to an algorithm, a C function, or a finite string.
To make the request for clarification more explicit:
Does [algorithm|C function|finite string] DD simulated by [algorithm|C function|finite string] HHH ever reach its own "return"
statement while [algorithm|C function|finite string] DD is beingsimulated by [algorithm|C function|finite string] HHH?
For each instance of "[algorithm|C function|finite string]" above, pick
one and give the resulting sentence.
On 11/1/2026 8:35 AM, olcott wrote:
typedef int (*ptr)();The above statement is unclear as "DD" and "HHH" could be referring to:
int HHH(ptr P);
01 int DD()
02 {
03ÿÿ int Halt_Status = HHH(DD);
04ÿÿ if (Halt_Status)
05ÿÿÿÿ HERE: goto HERE;
06ÿÿ return Halt_Status;
07 }
08
09 void main()
10 {
11ÿ HHH(DD);
12 }
The C / C++ groups are the only people in the
world that did not flat out lie about this question:
Does DD simulated by HHH ever reach its own "return"
statement while DD is being simulated by HHH?
* an algorithm, i.e. a fixed immutable sequence of instructions that
always generates the same output for a given input.
* a C function, i.e. a named address that can contain any arbitrary set
of instructions in sequence
* a finite string, i.e. a 32-bit function pointer which is the starting address of a C function.
So please clarify whether each use of "HHH" and "DD" in the above
sentence refers to an algorithm, a C function, or a finite string.
To make the request for clarification more explicit:
Does [algorithm|C function|finite string] DD simulated by [algorithm|C function|finite string] HHH ever reach its own "return"
statement while [algorithm|C function|finite string] DD is beingsimulated by [algorithm|C function|finite string] HHH?
For each instance of "[algorithm|C function|finite string]" above, pick
one and give the resulting sentence.
On 11/1/2026 8:01 AM, dbush wrote:
On 11/1/2026 8:35 AM, olcott wrote:
typedef int (*ptr)();The above statement is unclear as "DD" and "HHH" could be referring to:
int HHH(ptr P);
01 int DD()
02 {
03ÿÿ int Halt_Status = HHH(DD);
04ÿÿ if (Halt_Status)
05ÿÿÿÿ HERE: goto HERE;
06ÿÿ return Halt_Status;
07 }
08
09 void main()
10 {
11ÿ HHH(DD);
12 }
The C / C++ groups are the only people in the
world that did not flat out lie about this question:
Does DD simulated by HHH ever reach its own "return"
statement while DD is being simulated by HHH?
* an algorithm, i.e. a fixed immutable sequence of instructions that
always generates the same output for a given input.
* a C function, i.e. a named address that can contain any arbitrary
set of instructions in sequence
* a finite string, i.e. a 32-bit function pointer which is the
starting address of a C function.
So please clarify whether each use of "HHH" and "DD" in the above
sentence refers to an algorithm, a C function, or a finite string.
DD is to be construed as a finite string of C source
code of a C function. HHH is to be construed as a C
interpreter that simulates C source code. HHH can
simulate itself simulating DD if needed.
To make the request for clarification more explicit:
Does [algorithm|C function|finite string] DD simulated by[algorithm| C function|finite string] HHH ever reach its own "return"
statement while [algorithm|C function|finite string] DD is beingsimulated by [algorithm|C function|finite string] HHH?
For each instance of "[algorithm|C function|finite string]" above,
pick one and give the resulting sentence.
| Sysop: | Tetrazocine |
|---|---|
| Location: | Melbourne, VIC, Australia |
| Users: | 4 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 76:28:07 |
| Calls: | 221 |
| Files: | 21,513 |
| Messages: | 83,321 |