[C++-sig] Pyste bug: operator! shouldn't be translated

Niall Douglas s_sourceforge at nedprod.com
Sat Oct 4 05:49:27 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A "friend FXVec4f operator!(const FXVec4f& a)" gets converted by 
pyste into .def( !self ) which if I understand the BP docs correctly, 
is not supported.

Is there not any reason why this couldn't be added to Boost.Python 
which AFAICS supports every operator except logical NOT? I can't see 
any.

Other pyste bug: something like "operator float*()" converts into 
".def("to_float", &FX::FXVec4f::operator float*)" which is fine but 
how do you specify the return policy??? Furthermore if you didn't 
want them, how can you exclude() them?

Lastly, something like "operator FXVec3f&()" converts into 
".def("to_FX_FXVec3f", &FX::FXVec4f::operator FX::FXVec3f&)" which 
seems odd as how could python know what a FX_FXVec3f is? Perhaps 
"to_FXVec3f" (without the namespace) maybe.

Cheers,
Niall





-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2

iQA/AwUBP35DR8EcvDLFGKbPEQI8RwCfVSHEZPQYnrxjYufILXOgcipLg1gAn0Rt
hqlY9srUSF/DC30K2ehvYn6P
=yDta
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list