Deutsch   English   Français   Italiano  
<vroq9s$23o7q$4@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: Richard Heathfield <rjh@cpax.org.uk>
Newsgroups: comp.theory
Subject: Re: #include
Date: Sun, 23 Mar 2025 11:11:56 +0000
Organization: Fix this later
Lines: 37
Message-ID: <vroq9s$23o7q$4@dont-email.me>
References: <t7DDP.136706$C61.55739@fx03.ams4> <vroi8b$20u2j$1@dont-email.me>
 <vrojfu$1ut0v$3@dont-email.me>
 <a3f7681ce5fa05821aa7d4a80579a01079a9061e@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Mar 2025 12:11:56 +0100 (CET)
Injection-Info: dont-email.me; posting-host="5bf18f304b101a248a6678d5b4be2dec";
	logging-data="2220282"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18G2uaesXjkgqfnfsFBSG0Biyh/ycIVpFg6E0M/f5kMug=="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2GILDPjIl8udv0b6EBZpLpjdU/E=
Content-Language: en-GB
In-Reply-To: <a3f7681ce5fa05821aa7d4a80579a01079a9061e@i2pn2.org>
Bytes: 2392

On 23/03/2025 11:08, Richard Damon wrote:
> On 3/23/25 5:15 AM, Richard Heathfield wrote:
>> On 23/03/2025 08:54, Mikko wrote:
>>
>> <snip>
>>
>>> Some languages use include to compensate the lack of some
>>> better features for the same purpose. languages that have
>>> those better features don't need include and usually haven't.
>>
>> If I were a Ritchie (pace, Tevye, there is no music), the VERY 
>> FIRST TIME a compilation failed because I forgot a header I'd 
>> have merged all the headers into one and then hardcoded that 
>> one everything.h header into the compiler itself. Problem... 
>> SOLVED.
>>
> 
> Doesn't work for user includes.

Indeed. But if it works for stdio, stdlib, string, math, ctype 
and assert, it works all the work it has to.

> 
> Yes, we could have the compiler auto include all the standard 
> headers, but then we lose the ability to improve the backwards 
> compatibility of standards that require the inclusion of a new 
> header to enable new nice symbols for new features that used to 
> be available to the user to use.

I'll take the hit. :-)

-- 
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within