> Hi, 
> 
> I Have been working on the new syntax for signals and slot.
> http://developer.qt.nokia.com/wiki/New_Signal_Slot_Syntax
> 
> It looks like that.
> 
> connect(sender, &Sender::valueChanged,
>         receiver, &Receiver::updateValue );
> 
> The idea is too have more check at compile time (typos, type checking, no 
> issues with typedefs and namespaces)
> 
> With recent compilers, you can even do:  (using lambdas)
> 
> connect(sender, &Sender::valueChanged, [=](const QString &newValue) {
>         receiver->updateValue("senderValue", newValue);
>     }  );
> 
> More information on the wiki.
> 
> I think the code is ready to be merged in Qt5, so I made a merge requests:
> https://qt.gitorious.org/qt/qtbase/merge_requests/42
> 
> Feedback welcome.
> 

I still see a problem in making signals public, this
completely breaks encapsulation, and makes it possible 
for everyone to emit any signal.

Peter


-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to