Deutsch   English   Français   Italiano  
<100etl5$1i1s3$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Mikko <mikko.levanto@iki.fi>
Newsgroups: comp.theory
Subject: Re: Overcoming the proof of undecidability of the Halting Problem by a simple example in C
Date: Mon, 19 May 2025 12:29:09 +0300
Organization: -
Lines: 37
Message-ID: <100etl5$1i1s3$1@dont-email.me>
References: <1005jsk$3akrk$1@dont-email.me> <bc6f0f045212bdfb7f7d883426873a09e37789ea@i2pn2.org> <1005u6v$3cpt2$1@dont-email.me> <1005v0p$3b07v$1@dont-email.me> <10063u0$3dmiv$1@dont-email.me> <1006on8$3l9t7$1@dont-email.me> <1007kgq$3qb7l$9@dont-email.me> <1009lm9$b15q$1@dont-email.me> <100ceum$uvq0$1@dont-email.me> <87ecwl1s2p.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 19 May 2025 11:29:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8f4381c44869abbb66b062db77a9c084";
	logging-data="1640323"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18zbIGs93F71nuzSDyY7AqI"
User-Agent: Unison/2.2
Cancel-Lock: sha1:VRbNYkullztH6z2XCRw+lP9Qltw=

On 2025-05-18 22:18:06 +0000, Ben Bacarisse said:

> Richard Heathfield <rjh@cpax.org.uk> writes:
> ...
>> If they know C they should know that it's
>> u32 HHH(void (*P)()), according to Halt7.c.
>> 
>> It takes a pointer to a function that accepts no arguments and returns no
>> value.
> 
> Yes, but I am surprised that you are being so modern!!  You used to
> favour C90 and didn't really care for anything more recent.

I havn't used C for a long time. Therefore I have had no need to care
about the newer version. But I don't see anything wrong in them, the
new features seem useful even if it is unlikely I will yuse them
myself.

> Empty ()s in a declarator were made obsolete in C17 and made equivalent
> to (void) in C23.  Prior to C23 a parameter that is pointer to a
> function taking no arguments would have to have been written as
> 
>   u32 HHH(void (*P)(void))
> 
> and after C23 the (probable) intended meaning would have to be written
> as
> 
>   u32 HHH(void (*P)(...))
> 
> (Caveat: I'm not properly up to date anymore and, this not being
> comp.lang.c, I may not be corrected by People Who Really Know.)

I'll ask there if I really need to know.

-- 
Mikko