[Kde-bindings] Qyoto: new features

Richard Dale richard.dale at telefonica.net
Mon Apr 9 20:35:31 UTC 2012


On Monday, April 09, 2012 01:27:35 PM Dimitar Dobrev wrote:

It works because while QFlags are not technically enums, they do nothing but 
provide type safety for C++ enums, that is, practically they are enums. On the 
C# side, enums are natively type-safe so it is completely correct to replace 
QFlags with Enum. 


Well no I don't think that's right. If you pass 'EnumA & EnumB' as a argument 
that value isn't an enum, it is an unsigned int. The QFlags stuff is about 
constructing unsigned ints from enums that are AND'd and OR'd together in a 
type safe manner.

-- Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20120409/bbb3e1e5/attachment-0001.html>


More information about the Kde-bindings mailing list