[C++-sig] pyste and masking interfaces
nicodemus at globalite.com.br
Mon Apr 28 22:47:38 CEST 2003
Sameer Agarwal wrote:
> given my recent experiments with pyste, I was wondering if it would
> make sense
> to generalize the exclude functionality in pyste. Perhaps a
> userdefined callback can be defined which the wrapper generator calls
> before deciding to wrap a function. The callback gets as input the
> definition or some parsed form of it to make the decision.
Certainly... how do you think such interface should work? Should it work
globally, or just local to the pyste file?
For instance, let's register a callback that excludes any function whose
return type is not a fundamental type (int, char, floats...):
if isinstance(function.result, FundamentalType):
Is something along this lines that you think would be useful? Any thoughts?
More information about the Cplusplus-sig