[C++-sig] Pyste bug: can't set different return policies on method

Niall Douglas s_sourceforge at nedprod.com
Sun Sep 21 02:23:41 CEST 2003


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

In a class like as follows:

class FXFile
{
   const FXString &name() const;
   static FXString name(const FXString &file);
};

Pyste gets the two name()'s confused and tries to apply 
return_internal_reference to both. If I try to override and set one 
of the name()'s to something different, the pyste syntax doesn't let 
me.

Solutions? I figured I can temporarily 
return_value_policy(manage_new_object)) but in other situations this 
wouldn't be possible.

Cheers,
Niall





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

iQA/AwUBP2zvjcEcvDLFGKbPEQLXwwCgrdpzWFnFFnCogaUHqRaZJkaHof0AoNyg
mWYNTTRsjOlUQf6vnClNRVB/
=4EYE
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list