in reply to Re: Mixing C and perl
in thread Mixing C and perl
If $amd is just a blessed hash reference, I think I'd have to "indirect through" the perl wrapper:$amd->method();
Also not too onerous. But will h2xs do all the right stuff to do the dynamic linking? I confess to considerable uncertainty about how the linking is made to work. I have tested the original model, and it appears to be doing the right thing with linking and reference counts.# In AddrMatch.pm sub method { my $self = shift; my $Cptr = $self->{__c_ptr}; return $Cptr->xs_method(); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Mixing C and perl
by tsee (Curate) on Jan 17, 2012 at 19:06 UTC | |
by salva (Canon) on Jan 17, 2012 at 22:13 UTC |