[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Interfacing XS/C++ code with MacPerl



online@mactech.com (Jeff at MacTech) writes:
>In article <mac-perl.928839@sneezy.Dartmouth.ORG>,
>Sixten.F.K.Otto.98@alum.dartmouth.org (Sixten F. K. Otto 98) wrote:
>>I have looked over all the MacPerl pages I could find, have scanned the Perl
>>man pages, and read the chapter from MP:P&E on building MacPerl and extension
s
>>(which example was awfully simplistic). I've also scanned some of the less
>>platform-independent information. But I still cannot find much in the way of
>>lucid and introductory-level information about how to go about the process of
>>interfacing MacPerl and any C/C++ code that I might write.
>
>I would be interested in pointers in this regard as well. There is a
>section in Advanced Perl Programming on SWIG and XS (mostly SWIG, I
>think), so you might want to take a look at this.

Yes, that section is a good starting point. Next, you'll have to read
perlxs.pod, perlxstut.pod, perlcall.pod and perlguts.pod.

Also, downloading the MacPerl source distribution and taking a look at the
toolbox modules might be a good idea.

>>For that matter, is it even possible for C/C++ code to maintain its own data
>>structures (create and destroy dynamic memory constructs outside of the Perl
>>environment)?
>
>Yep, I'm fairly sure that it is.

Yes, it's possible.

Matthias

-- 
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "I'm set free to find a new illusion" -- Velvet Underground




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch