perl.xs...Array dereferencing with overload by Robert May- March 10, 2008 I&39;m trying to work out the best way to honour overloading in XSUBs.In pure perl I can write a function that expects an array reference,and dereference the passed-in reference, regardless of whether thepassed-in parameter is a real array reference, a blessed object usingan array for its storage or any other blessed reference with &39;&39;overloading, like this:!perl -wuse strict;use warnings;sub rect my($left, $top, $right, $bottom) = $_0; print "($left,$top)...http://www.nntp.perl.org/group/perl.xs/2008/03/msg2444.html probing for perlapi.h symbols: PL_unitcheckav vs KEY_UNITCHECK by Adriano Ferreira- March 3, 2008 Recently I tried my first XS code for Devel-Hook dist(http:search.cpan.orgdistDevel-Hook).There I tried to include conditional compilation for dealing withUNITCHECK blocks (introduced at perl 5.9.4 IIRC) by testing ifPL_unitcheckav (the internal array of UNITCHECK blocks that theinterpreter maintains) was defined or not:The code is at:http:search.cpan.orgsrcFERREIRADevel-Hook-0.004Hook.xsAnd the relevant part is:AV _get_unitcheck_array() ifdef PL_unitcheckav if ( !PL_unitcheckav ) ...http://www.nntp.perl.org/group/perl.xs/2008/03/msg2443.html |