[C++-sig] Collection of pyste notes
Niall Douglas
s_sourceforge at nedprod.com
Tue Dec 23 19:32:30 CET 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just readying TnFOX v0.5 for release and I have a few notes.
1. Guess it's obvious, but pyste generates incorrect code for
bitfields eg;
struct Foo
{
unsigned int a:3;
unsigned int b:2;
};
The problem of course is that you can't take the address of a
bitfield member. I guess to handle this you need lots of little
wrapper functions which seems extreme. Can perhaps the bit offset be
calculated by compile-time magic and then use a custom make_getter()?
2. gccxml from CVS fixes a number of previous problems, including the
throw() modifier one - or rather, it now tells pyste when throw() is
specified so pyste can cast it off for you (an easy mod to pyste).
More good news is that the previous problem with const public static
data members has been fixed.
3. gccxml from CVS now returns the typedefed type rather than the
underlying type. Hence if I have typedef char FXchar; and I do things
like:
const FXchar *getName() const;
... now pyste doesn't recognise that it's a string and complains.
Cheers,
Niall
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBP+iKQMEcvDLFGKbPEQINbwCfRSRaSYoWiYex8gTE3D+h8ipvdbsAn1jT
LMU9UK2BooTnMm+ilHqLJku4
=YsAa
-----END PGP SIGNATURE-----
More information about the Cplusplus-sig
mailing list