🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #757

Re: variadic min and max, (any some and none, cat and more)

#757
From: bartc
Date: Sun, 25 Oct 2026 11:00
42 lines
2638 bytes
On 25/10/2026 02:24, Keith Thompson wrote:
> bartc <bc@freeuk.com> writes:
>> On 25/10/2026 00:34, Keith Thompson wrote:
>>> bartc <bc@freeuk.com> writes:
>>> [...]
>>>> Still talking about variadic functions? Then in C it's more
>>>> restricted: variadic arguments will be, or be promoted to, one of:
>>>>
>>>> * Integer (typically one of i32 u32 i64 u64)
>>>>
>>>> * Float (typically f64)
>>>>
>>>> * Pointer
>>>>
>>>> * Struct
>>>>
>>>> The last is more variable, but on modern ABIs, a struct that isn't one
>>>> of certain set of patterns will be passed by pointer. (I don't know
>>>> how _BitInt are handled.)
>>> [...]
>>> That's an odd and incomplete way to state the rules (and you
>>> missed unions).
>>
>> They will be grouped with structs.
> 
> Will they be?  By whom?  I don't know what that even means.
> 
> Perhaps you just forgot about unions -- which would be perfectly
> understandable.

I just don't consider unions as a special type at all. I mean, what is 
the practical between:

   union {...};

and:

   struct {union {...};};

where "..." is the same in each case?

Technical Details
Message-ID: <11bkngf$3hia6$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-mail
References: <11bes8b$1gncr$1@dont-email.me> <11bf84v$1jkb5$1@dont-email.me> <11bfdcs$1mvrv$1@dont-email.me> <11bi1pg$2ke58$2@dont-email.me> <11bi3bf$2l005$1@dont-email.me> <11bjf9d$35feb$2@kst.eternal-september.org> <11bjmml$37qje$1@dont-email.me> <11bjp8s$38c65$1@kst.eternal-september.org>

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: bartc <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: variadic min and max, (any some and none, cat and more)
Date: Sun, 25 Oct 2026 11:00:31 +0000
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <11bkngf$3hia6$1@dont-email.me>
References: <11bes8b$1gncr$1@dont-email.me> <11bf84v$1jkb5$1@dont-email.me>
 <11bfdcs$1mvrv$1@dont-email.me> <11bi1pg$2ke58$2@dont-email.me>
 <11bi3bf$2l005$1@dont-email.me> <11bjf9d$35feb$2@kst.eternal-september.org>
 <11bjmml$37qje$1@dont-email.me> <11bjp8s$38c65$1@kst.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 25 Oct 2026 11:00:32 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3721542"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18Sp138CabGJ3mA8q8PT8j5"; posting-host="1a674fee9f6b34c55d86342b13471feb"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:H9mOzzpprGqrKYBZ3H688j295lU= sha256:DgetEKYt+l9RXxLhfwnOyfCoe1AShO7EDKTp/x/zDho=
	sha1:38P5AbyN+oPX3flnuJnee+GFXN8= sha256:0kHyUqwM0fwJGMtl0r5J2mTcySNOfOCR416m8g68MPs=
In-Reply-To: <11bjp8s$38c65$1@kst.eternal-september.org>
Content-Language: en-GB