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

Ville Voutilainen ville.voutilainen at gmail.com
Sat Feb 22 12:57:47 CET 2020


On Sat, 22 Feb 2020 at 13:07, André Pönitz <apoenitz at t-online.de> wrote:
> > Buy a debugger that can skip code that you didn't write.
>
> The point was that in a such a situation I, as user, would not even
> try to step in when the call is marked with 'emit'. This 'emit' in
> a line *is* valuable markup, that saves me time.
>
> That's unrelated to what the debugger would or could do if I did step in,
> I just don't need to follow that path.
>
> [And apart from that: There's no need to *buy* such debugger, e.g. gdb's
> 'skip' actually works]

It occurs to me that, in case Creator doesn't do that already, we could make its
debugger UI to automatically tell the underlying debugger to skip
moc-generated code,
as a default.


> > The committee shot down the proposal because
> > 1) there are work-arounds to the problem, and we already use those
> > work-arounds for similar
> > issues with boost::signal
> > 2) trying to avoid clashes with lowercase non-function-like macros is
> > rather difficult
> > 3) the scope of the problem is narrow
> > 4) no existing code is broken
>
> Is that documented, perhaps with a bit more detail, somewhere?

Not that I know of - the LWG issue hasn't been updated yet. Is there
some particular detail
that you're missing?


More information about the Development mailing list