Yes I mean a reference.  I am now using
  r = newSVsv(*t);
  if (!SvPOK(r)) croak("could not add new range"); //stop, an error
  av_push(both, r);

Before I was just trying to push the *t.
Now it passes all tests, including a new one that uses splice.

Thanks,
Belinda

On Tue, 10 Dec 2002, Tassilo von Parseval wrote:

> On Tue, Dec 10, 2002 at 01:45:40PM -0500 Belinda M. Giardine wrote:
> <snip>

> Do you perhaps mean a reference a l� Perl when you say pointer?
> Something like:
>
>     push @arry, \@arry1;
>
> This can be done relatively easy:
>
>     av_push(arry, newRV_inc((SV*) arry1));
>
> Depending on your needs, you either need newRV_noinc() or newRV_inc() for
> creating the reference. One bumps the reference count up while the other
> one leaves it as it was.
>
> Tassilo

Reply via email to