Re: Outstanding parrot issues?

[email protected] (Arthur Bergman) Sat, 1 May 2004 20:48:40 +0100
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <[email protected]>
On 30 Apr 2004, at 12:54, Leopold Toetsch wrote:

>
>> ... Would it be possible for parrot to
>> provide an embedder's interface to all the (exported) functions that
>> checks whether the stack top pointer is set, and if not (ie NULL) it
>> pulls the address of a local variable in it
>
> This doesn't work:
>
>   {
>     PMC *x = pmc_new(..);
>     {
>        some_parrot_func();
>     }
>   }
>
> C<x> would be outside of the visible range of stack items. The braces 
> do
> of course indicate stack frames.

Since in this case I am outside or parrot and have chosen to use the 
interface, i better use register_pmc and if I did, then this sceme 
would work?




Arthur