Deutsch   English   Français   Italiano  
<vt15u8$df0l$1@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: James Kuyper <jameskuyper@alumni.caltech.edu>
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Mon, 7 Apr 2025 14:35:52 -0400
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <vt15u8$df0l$1@dont-email.me>
References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me>
 <vsj2l9$1j0as$1@dont-email.me> <vsjef3$1u4nk$1@dont-email.me>
 <vsjg6t$20pdb$1@dont-email.me> <vsjjd1$23ukt$1@dont-email.me>
 <vsjkvb$25mtg$1@dont-email.me> <vsjlkq$230a5$2@dont-email.me>
 <vsjs5k$2bfc5$2@dont-email.me> <vsjvgu$2fpp1$1@dont-email.me>
 <20250402113624.693@kylheku.com> <86o6xdhorr.fsf@linuxsc.com>
 <vsn0dm$2al86$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 07 Apr 2025 20:36:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7ff09bee0ae2c8930133536c6909c328";
	logging-data="441365"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+NTG+pCzmPYuhdtpZwsUAk2HgQ8GcoPRc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Cguh+VZ3o8ZxXKYklKuNZlStw0o=
Content-Language: en-US
In-Reply-To: <vsn0dm$2al86$1@paganini.bofh.team>
Bytes: 2199

On 4/3/25 18:00, Waldek Hebisch wrote:
> Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
....
>> Not always practical.  A good example is the type size_t.  If a
>> function takes an argument of type size_t, then the symbol size_t
>> should be defined, no matter which header the function is being
>> declared in.
> 
> Why?  One can use a type without a name for such type.

How would you declare a pointer to a function type such that it is
compatible with such a function's type?
When a variable is needed to store a value that would be passed as the
size_t argument to such a function, I would (in the absence of any
specific reason to do otherwise) want to declare that object to have the
type size_t.
Why should I have to #include a different header just because I want to
do these things?