is "emit" a key word?

Jörg Pauly joerg.pauly at t-online.de
Thu Jan 19 08:00:48 GMT 2006


Am Donnerstag, 19. Januar 2006 03:50 begab es sich, daß Patrick Noffke 
folgendes in den Rechenknecht kloppte:
> zephyr public wrote:
> > If I rename the "emit" to other words, it's fine.
>
> It is used by Qt (the foundation of Kdevelop) to emit signals.  Qt tools
> run a preprocessor (moc) on your code to generate the actual code to do
> the work of emit, so it's not actually a language keyword.  It's
> possible you have inadvertantly included one of the Qt headers, or it
> may be a bug.  Because you can compile and run your programs, it sounds
> like a bug, but that's just a guess without digging into it.

"emit" is just a macro, defined by Qt, and it does absolutely nothing.
It is just to beautify your code the way you see, aha, this is a signal fired. 
That's it.

-- 
---
Grüsse aus Meissen
Jörg Pauly

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list