[C++-sig] Polymorphism and Dangling Reference exception
Roman Yakovenko
roman.yakovenko at gmail.com
Thu May 18 21:23:13 CEST 2006
On 5/18/06, Garrick Chin <nonexistent.ftp at gmail.com> wrote:
>
> class Circle(test.Shape):
You should call the __init__ of the test.Shape
def __init__( self ):
test.Shape.__init__( self )
> def draw(self, param):
> return "circle: " + param
>
> What would be causing this exception? Thank you for your time.
You can try to use pyplusplus, it will save you a lot of time. It has nice GUI
( http://language-binding.net/pyplusplus/tutorials/tutorials.html )
so the learning curve should be short.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list