[C++-sig] Re: pyste and C++ namespaces]

Nicodemus nicodemus at esss.com.br
Wed Jan 28 00:10:28 CET 2004


Jeff Holle wrote:

> I realize presently that I am mistaken about this.
> In experimenting with a simple example, namespaces are handle elegantly.
> So the generated wrapper class is caused by other things in "real" 
> code, which I will endeavor to avoid.
>
> In further pyste experimenting, I put my C++ code in a namespace.
>
> First surprise was that I needed to decorate my class name in the 
> *.pyste file with its housed namespace.
> Doing this allowed pyste to run successfully, but.
>
> Second surprise that the generated python interface class now contains 
> a "wrapper" class.  Is this necessary?  The class is easily accessible 
> by opening the namespace, or not, depending on the C++ choice.


Hmm... a Wrapper class is only generated if you have virtual member 
functions in your C++ class. Perhaps if you post some example code me 
and others can help you out? 8)

Regards,
Nicodemus.





More information about the Cplusplus-sig mailing list