[C++-sig] Pyste: support for user defined code.

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Aug 15 11:18:08 CEST 2003


Hi,

I was thinking of adding a new feature to Pyste so that a user could
add arbitrary code to the code generated by Pyste.  Something along
these lines:

ud = UserDefined()
ud.addToHeader(['h1.hpp', 'h2.hpp'])
ud.addToDeclaration("""// insert code in the declaration area """)
ud.addToModule("""// insert code inside the module area""")

You get the general idea.

This should make it easy for users to add code of their own in the
appropriate places.  This makes it easy to experiment and also makes
it quite trivial to expose a std::vector using vector_indexing_suite.
It also makes it easy to deal with any new features in Boost.Python
that are not readily useable from Pyste.

What do you folks think?

cheers,
prabhu




More information about the Cplusplus-sig mailing list