On Wed, Feb 23, 2005 at 09:37:01PM +0100 Tommy Nordgren wrote:
> I wan't to find recommendations on a suitable book about writing 
> External Perl Modules
> In particular, I wan't to know how to do this in C++, with a lot of 
> static/global variables containing dynamically allocated memory 
> (std::map, std::vector, etc.)

Your first step should be figuring out how to do it in plain C. You can
then make the transition to C++ which is fairly smooth from an XS
point-of-view.

A few weeks ago I wrapped parts of std::vector into an XS class just to
see whether there are any significant differences from using C. It
turned out that the C++/XS combo is very convenient and offers some nice
shortcuts. I still have these preliminary experiments lying around and
could post or send them off-list.

Tassilo
-- 
use bigint;
$n=71423350343770280161397026330337371139054411854220053437565440;
$m=-8,;;$_=$n&(0xff)<<$m,,$_>>=$m,,print+chr,,while(($m+=8)<=200);

Reply via email to