[Interest] Is the emit keyword purely cosmetic?
Thiago Macieira
thiago.macieira at intel.com
Tue Mar 20 19:06:15 CET 2012
On terça-feira, 20 de março de 2012 19.58.00, Nikos Chantziaras wrote:
> I noticed that when emitting signals, I can simply omit the "emit"
> keyword. moc seems to produce the same code, regardless of whether I do:
moc doesn't parse your source code. So it doesn't see any "emit" at all.
>
> emit someSignal();
>
> or just call the signal member function directly:
>
> someSignal();
>
> Is "emit" purely cosmetic?
Yes.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120320/f7d87335/attachment.sig>
More information about the Interest
mailing list