Re: [Pdl-general] converttype

2022-07-17 Thread Ed .
Hi Patrick, The interface to “converttype” has changed very slightly by removing a parameter, and you just need to remove the “, 1” in calls to it. That was what I was trying to convey. Regarding the snippet of documentation you quote, that describes the behaviour of the function. I don’t

Re: [Pdl-general] converttype

2022-07-17 Thread Ed .
Hi Patrick, It seems like you followed my advice to email the list, but did not read the rest of my earlier email. I reproduce part of it here with a new addition in bold: “Extending and Embedding Perl” is a book (from 2002) added: not a manual, and it looks to me like you’re using that.

[Pdl-general] converttype

2022-07-17 Thread Patrick Dupre
Hello, Before version 2.80, I used to follow the manual Extending and Embedding Perl 1) Is there an alternative manual? 2) Here is my code (see p. 196 of the manual). SV *piddle = HeVAL (he) ; pdl *array = INT2PTR (pdl*, SvIV ((SV*) SvRV (piddle))) ; PDL -> converttype (, PDL_D, 1) ; Now, the