As discussed on the e-mail list, enums, static methods,
and any other members accessed with "::" rather than "-
>" are in effect not inherited in Perl. Consider the
following:
%module inheritance
%inline %{
class CBase
{
public:
enum EFoo {
eFoo0,
eFoo1
};
static int StatFun(void) {return 42;};
};
class CDerived : public CBase
{
};
%}
If this is wrapped for Perl, $inheritance::CDerived::eFoo0
is undefined, and calling inheritance::CDerived::StatFun
() doesn't work. A solution is to repeat some lines from
the Perl CBase package in the CDerived package.
Still the case in git master.
inheritance.i
as above,runme
:gives: