Sujet : Re: C23 thoughts and opinions
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 23. May 2024, 05:08:54
Autres entêtes
Organisation : None to speak of
Message-ID : <87ikz55fvt.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Lawrence D'Oliveiro <
ldo@nz.invalid> writes:
On Wed, 22 May 2024 22:23:26 -0300, Thiago Adams wrote:
I like the idea of embed ...
>
We’ve discussed this before. It just seems like a sop to those stuck with
antiquated, crippled build systems. In which case, how would they get an
up-to-date compiler that supports it?
Presumably by waiting until compilers support it, like any new feature.
C23 hasn't even been officially published yet, and at least a naive
implementation of #embed should be fairly straightforward.
Obviously any code that depends on it will be restricted to newer
compilers, but after a while that shouldn't be much of an issue.
And it means that the semantics of including the contents of a
(possibly binary) file are represented in the source code, not in
one of a gazillion incompatible build systems.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */