Hello,

I did fail in trying to change value in XS when I pass a reference:
Typically:
in perl:
my $a = 5 ;
test (\a) ;

in XS
void
test (nb)
  int *nb
  CODE:
    (*nb)++ ;

It does work,
Should I use a ref on a ref ?

--
---
==========================================================================
 Patrick DUPRÉ                      |   |
 Department of Chemistry            |   |    Phone: (44)-(0)-1904-434384
 The University of York             |   |    Fax:   (44)-(0)-1904-432516
 Heslington                         |   |
 York YO10 5DD  United Kingdom      |   |    email: pd...@york.ac.uk
==========================================================================
-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/

Reply via email to