Re: Storing external data in PMCs

[email protected] (Arthur Bergman)
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <[email protected]>
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 the stashed
> routine from C or we have to add a call to the extension API to stash a
> raw pointer.
>
> -Melvin
>

The function is a C function.  And yes it is a custom PMC which I have 
already created.

Dan pointed out the unmanagedstruct.pmc which but I fail to see how 
that would help me, I think we need an external API for stashing raw 
pointers.

(I don't know what PNI is, but I assume it is to execute bytecode from 
C and I do not want to do that).

Arthur
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.