bipham has asked for the wisdom of the Perl Monks concerning the following question:
Would you please tell me if there is a way to pass a reference to an array of objects from Perl to XS?
For an example, I would like to be able to do this.
my $rect = rect->new(1,2,3,4); my $rect2 = rect->new(2,3,8,6); my $bbox = rect->get_bbox([$rect,$rect2],2); printf ("%d %d %d %d\n",$bbox->x1,$bbox->y1,$bbox->x2,$bbox->y2);
I have been trying to do this for almost a week now without any success. If you have any ideas, please help me.
Thank you,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing a ref to an array of objects from Perl to XS
by Anonymous Monk on Mar 02, 2012 at 04:18 UTC |