Re: Storing external data in PMCs

2003-10-27 Thread Leopold Toetsch
Arthur Bergman <[EMAIL PROTECTED]> wrote: > The function is a C function. And yes it is a custom PMC which I have > already created. The interface for calling C code from PASM is NCI (native call interface). s. e.g. library/*.pasm or t/pmc/nci.t. But inside your custom PMC you can do all kinds o

Re: Storing external data in PMCs

2003-10-27 Thread Arthur Bergman
On Monday, October 27, 2003, at 05:20 pm, Melvin Smith wrote: Apologies for the formatting of these replies, I'm at work with Lotus Notes. PNI (Parrot Native Interface) is for writing native extensions in C. So, what I meant is you can write a method for stashing a raw pointer with the API tod

Re: Storing external data in PMCs

2003-10-27 Thread Melvin Smith
MAIL PROTECTED]>, [EMAIL PROTECTED], [EMAIL PROTECTED] Subject:Re: Storing external data in PMCs On Monday, October 27, 2003, at 04:44 pm, Melvin Smith wrote: > > In this case I assume the function can either be Perl5 or Parrot? > Sounds like a custom PMC to me. Give

Re: Storing external data in PMCs

2003-10-27 Thread Arthur Bergman
On Monday, October 27, 2003, at 04:44 pm, Melvin Smith wrote: In this case I assume the function can either be Perl5 or Parrot? Sounds like a custom PMC to me. Given the PMC that could stash function pointers and correctly dispatch gets/sets you have the option of writing a PNI method for setting

Re: Storing external data in PMCs

2003-10-27 Thread Melvin Smith
extension API to stash a raw pointer. -Melvin Arthur Bergman <[EMAIL PROTECTED]> 10/27/2003 10:35 AM To: Melvin Smith <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Storing external data in PMCs On Monday, Octo

Re: Storing external data in PMCs

2003-10-27 Thread Arthur Bergman
On Monday, October 27, 2003, at 03:26 pm, Melvin Smith wrote: At 02:56 PM 10/27/2003 +, Arthur Bergman wrote: So I am currently trying to do a Perl5LVALUE pmc, a stumbling block is however that I need to pass the PMC the thing that it is lvalueling, I was planning to use the pmc data field

Re: Storing external data in PMCs

2003-10-27 Thread Melvin Smith
At 02:56 PM 10/27/2003 +, Arthur Bergman wrote: So I am currently trying to do a Perl5LVALUE pmc, a stumbling block is however that I need to pass the PMC the thing that it is lvalueling, I was planning to use the pmc data field for storing this but I cannot access it as a extender without v