On Wednesday 16 July 2008 16:12, Erick Tryzelaar wrote:
> I've got a simple sip file that has:
>
> struct Foo {
> %TypeHeaderCode
> #include "foo.h"
> %End
>
>   virtual Foo();
> };
>
> struct Bar: Foo {
> %TypeHeaderCode
> #include "foo.h"
> %End
>
>   virtual Bar();
> };
>
>
> That should be valid code though, right?


It's valid C++, sip may or may not accept it (sip only covers a meaningful 
subset of C++), and it's identical to the following code which sip will accept:

class Foo {
%TypeHeaderCode
#include "foo.h"
%End

public:
  virtual Foo();
};

class Bar: Foo {
%TypeHeaderCode
#include "foo.h"
%End

public:
   virtual Bar();
};

Jim
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to