C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Paper for Preventing Re-entry of Functions (10 pages)

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Sun, 19 Feb 2023 16:14:55 +0000
On Sun, Feb 19, 2023 at 4:00 PM Ville Voutilainen
<ville.voutilainen_at_[hidden]> wrote:
>
> P.S. Somewhat tongue in cheek: I don't think the proposal has enough
> keywords for use cases virtually nobody needs.


If it's more to your palate, replace all the keywords I proposed with
std::[keyword]. Something like:

#include <noreentry>

int main(void)
{
    MyClass a;
    MyClass b( std::noreentry_linked_to(b) );
}

Personally I don't see the merit in opting for non-keywords over
keywords if the implementation of the non-keyword requires compiler
support. I find it borderline asinine that the keyword 'typeid' cannot
be used without including a header file -- I would have thrown a can
of tear gas in the window at the committee that day if I'd been aware
what they were plotting.

Received on 2023-02-19 16:15:05