Bugs item #1105370, was opened at 2005-01-20 05:50
Message generated for change (Settings changed) made by olly
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1105370&group_id=1645
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: perl
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Josh Cherry (jlcherry)
>Assigned to: Robert Stone (talby)
>Summary: [Perl] inheritance of enums and static methods
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1105370&group_id=1645
|