[Kde-bindings] Conversion operators

Tobias Rautenkranz tobias at rautenkranz.ch
Fri Apr 17 17:57:34 UTC 2009


> How are you actually using the conversion operators in a non-c++ language -
> do they make sense outside c++?
Yes, I'm implementing some C++ style overload resolution. Most cases will be 
converted by a constructor, but there is e.g.:
QColor::operator QVariant ()

> OK, I fixed the code generation as you suggest with some minor changes to
> the patch so that it special cases conversion operators before calling
> newMethod(), rather than inside it.
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090417/aff3e743/attachment.sig>


More information about the Kde-bindings mailing list