[C++-sig] inheritance and virtual callbacks

Roman Yakovenko roman.yakovenko at gmail.com
Wed Jun 4 19:31:21 CEST 2008


2008/6/4 Matthew Scouten <matthew.scouten at gmail.com>:
> Ah, I see that is going on.
>
> The important thing is not the registration. Registration is irrelevant
> unless things are getting called from python. My callbacks are only called
> from c++, and are overridden in python.
>
> The important difference to note here is that in the py++ code, FooCallback
> is separately wrapped in both foo and bar. That is exactly what I had hoped
> to avoid. I was afraid that would be the case.

Don't afraid - use the right tool for the job :-)

> Thank you.

You are welcome.



-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list