PDA

View Full Version : "emit" keyword optional when calling signals?



will49
21st November 2008, 00:38
Is using the "emit" keyword before a signal function necessary? I forgot to add it so some cases when I call a signal, but they still seem to work.
e.g.


mySignal();
instead of

emit mySignal();

I was wondering if there is any difference if I leave it out?

wysota
21st November 2008, 01:13
emit is an empty macro but you should use it to increase readability.