![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re^3: XS from XS?by creamygoodness (Curate) |
on Apr 10, 2010 at 18:23 UTC ( #834023=note: print w/replies, xml ) | Need Help?? |
I believe that second technique I described (the Time::HiRes approach) does exactly what you want. In the exporting module, you store function pointer address values within a global Perl hash as integer scalar values. In the importing module, you recover those function pointer address values from the integer scalars and cast them to function pointers of the appropriate type.
In Section
Seekers of Perl Wisdom
|
|