If you write your code as a perl object (module), you can store the C++ object (the void*) in the perl object, that way each of the C XS/wrapper functions would have access to the C++ object through $self which would allow you to pass it through to the C++ code.
Does this make sense?
HTH
Kyle
In reply to Re: Perl wrappers for C++ classes
by mortis
in thread Perl wrappers for C++ classes
by flymolo42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |