Date: Sun, 2 Feb 2025 21:47:26 +0100
On Sun, Feb 2, 2025 at 8:50 PM Frederick Virchanza Gotham via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> The C++ Standard doesn't mention the word 'mangle', however it is at
> least on some level aware of mangling because you can write "extern C"
> to tell the compiler not to mangle a name -- or at least to mangle it
> the way it would get mangled if it were C instead of C++.
>
I'm not sure I agree with that. The standard only says that "extern C"
provides for linkage to the C programming language.
Although implementations typically use mangling for this, the standard
doesn't say anything about it. So you're not only proposing another way to
specify mangling, you're proposing introducing knowledge of mangling at all
to the standard, which is quite a big change imo.
Cheers,
Anders
<std-proposals_at_[hidden]> wrote:
>
> The C++ Standard doesn't mention the word 'mangle', however it is at
> least on some level aware of mangling because you can write "extern C"
> to tell the compiler not to mangle a name -- or at least to mangle it
> the way it would get mangled if it were C instead of C++.
>
I'm not sure I agree with that. The standard only says that "extern C"
provides for linkage to the C programming language.
Although implementations typically use mangling for this, the standard
doesn't say anything about it. So you're not only proposing another way to
specify mangling, you're proposing introducing knowledge of mangling at all
to the standard, which is quite a big change imo.
Cheers,
Anders
Received on 2025-02-02 20:47:40