Article View: comp.lang.c++
Article #686Re: Why I post to the C / C++ groups
From: dbush
Date: Sun, 01 Nov 2026 15:09
Date: Sun, 01 Nov 2026 15:09
64 lines
3449 bytes
3449 bytes
On 11/1/2026 9:50 AM, olcott wrote:
> On 11/1/2026 8:01 AM, dbush wrote:
>> On 11/1/2026 8:35 AM, olcott wrote:
>>> typedef int (*ptr)();
>>> 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?
>>>
>>>
>> The above statement is unclear 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.
>>
>
> 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.
So would the following be correct?
Does C function DD simulated by C function HHH ever reach its own
"return" statement while C function DD is being simulated by C function HHH?
>
>> 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 being
>> simulated by [algorithm|C function|finite string] HHH?
>>
>> For each instance of "[algorithm|C function|finite string]" above,
>> pick one and give the resulting sentence.
>
>
Technical Details
Message-ID:
<11c7knn$22f40$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11c7f6i$20cva$1@dont-email.me> <11c7gop$20vs2$1@dont-email.me> <11c7jj0$222c0$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: dbush <dbush.mobile@gmail.com> Newsgroups: comp.theory,comp.lang.c,comp.lang.c++ Subject: Re: Why I post to the C / C++ groups Date: Sun, 1 Nov 2026 10:09:44 -0500 Organization: A noiseless patient Spider Lines: 64 Message-ID: <11c7knn$22f40$1@dont-email.me> References: <11c7f6i$20cva$1@dont-email.me> <11c7gop$20vs2$1@dont-email.me> <11c7jj0$222c0$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 01 Nov 2026 15:09:44 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2178176"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wfmKcAy+Cb+B18HNO74gl"; posting-host="853b3fd6cab217d7226c5a6098a56180" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:4YgnWHfXX+NhUHkqHx+8KYDJULQ= sha256:NiZyJVKW/tJWabXI9HYb219J/gAgRdQ8g+D9U9zzSuU= sha1:PDgkiFsiKRoPnBhu2EBjO/i5HuQ= sha256:O6eWBFko+sBJxobmPi/UAZwZnVtaBNeod+qptI7v2nE= Content-Language: en-US In-Reply-To: <11c7jj0$222c0$1@dont-email.me>