<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>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<Enum> with Enum.</span></div><div><br><span></span></div><div><span>Dimitar Dobrev<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Richard Dale <richard.dale@telefonica.net><br> <b><span style="font-weight: bold;">To:</span></b> KDE bindings for other programming languages <kde-bindings@kde.org>
 <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, April 9, 2012 10:40 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] Qyoto: new features<br> </font> </div> <br>
<div id="yiv693041390">
<style type="text/css">
#yiv693041390 p, #yiv693041390 li {white-space:pre-wrap;}
</style><div>
<div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">On Thursday, April 05, 2012 12:59:19 PM Dimitar Dobrev wrote:<br></div>
<div style="margin-top:12px;margin-bottom:12px;margin-left:40px;margin-right:40px;text-indent:0px;">5. Generation of enum argument types instead of uint when mapping QFlags enums. </div>
<div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">Are you sure this is right? The QFlags values aren't enums, they are values of the templated class that is generated by the QFLAGS macro. To make that work in Qyoto you would need to generate the same templated class in C#. Is that what you had in mind?</div>
<div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;"> </div>
<div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">-- Richard<br><br></div></div></div><br>_______________________________________________<br>Kde-bindings mailing list<br><a ymailto="mailto:Kde-bindings@kde.org" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kde-bindings" target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br><br><br> </div> </div>  </div></body></html>