[Development] A modest proposal: disable lower-case keywords (emit, foreach, forever, signals, slots) by default

Ville Voutilainen ville.voutilainen at gmail.com
Fri Feb 21 12:21:32 CET 2020


On Fri, 21 Feb 2020 at 10:47, Allan Sandfeld Jensen <kde at carewolf.com> wrote:
>
> On Sunday, 16 February 2020 19:32:02 CET Thiago Macieira wrote:
> > On Saturday, 15 February 2020 06:23:52 PST Marc Mutz via Development wrote:
> > > C++20 will contain new classes with emit() member functions
> > > (wg21.link/P0053). While that will only pose problems for users that
> > > include the new <osyncstream> header after (almost) any Qt header, this
> > > should serve as a second shot across the bows (after namespace
> > > boost::signals) that we should change something.
> >
> > Orthogonal to your request: can we ask C++20 to change the name of this
> > function? We've been #define'ing emit for nearly 30 years.
>
> Didn't C++20 just finalize, in any case?

Yes, and the name change was discussed but rejected.


More information about the Development mailing list