Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v71dmv$a6is$1@dont-email.me>
Deutsch   English   Français   Italiano  
<v71dmv$a6is$1@dont-email.me>

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

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: Is it possible to generate a compile time error from an inline
 function?
Date: Sun, 14 Jul 2024 22:50:38 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <v71dmv$a6is$1@dont-email.me>
References: <v6tu04$klr$1@news.muc.de> <v6u5lq$3krbn$1@dont-email.me>
 <v6uc4i$1rfr$1@news.muc.de>
 <fb9c29d418c137a633f136a36a128ea57532adad@i2pn2.org>
 <v6uf3v$1rfr$2@news.muc.de>
 <e4c6a99e1aa3a28e6f8f6176a6cc6678954156a2@i2pn2.org>
 <v70j5f$54u3$1@dont-email.me> <878qy3ss59.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Jul 2024 22:50:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3132360bab10f3edba3518866baa2112";
	logging-data="334428"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+eGKOmzv3nKdzNknicVDt5oyQz0dvf8q0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:L1lz9R1mgzriOKGOkxEFVs0Klio=
Content-Language: en-GB
In-Reply-To: <878qy3ss59.fsf@nosuchdomain.example.com>
Bytes: 2740

On 14/07/2024 21:14, Keith Thompson wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 13/07/2024 20:07, Richard Damon wrote:
> [...]
>>> The question being since most C compilers are also C++ compilers,
>>> they somethings accept this sort of C++ism as an extension.
>>
>> Actually, the vast majority of C compilers are /not/ also C++
>> compilers.   But the most popular C compilers, by a significant
>> margin, are C++ compilers.
> 
> I wouldn't quite put it that way.
> 
> gcc, clang, and Microsoft provide both C and C++ compilers, but they're
> separate applications, perhaps invoked from a common driver program.
> They typically share the same backend, but the frontends are separate.
> I wouldn't expect to see any code that parses "int class;" and decides
> whether it's a syntax error based on which language is being compiled.
> 
> The C and C++ frontends might share some code, but they're separate
> applications.
> 

That is a lot more accurate than the way I described it.

However, it is the case that the C compilers have historically picked up 
features from their sibling C++ compilers as extensions.  They don't get 
things that are directly counter to the way C works, and the good 
features have often made it into later C standards.

So yes, separate applications but with some code sharing is a better way 
to put it.