Re: Outstanding parrot issues?

[email protected] (Arthur Bergman) Sun, 2 May 2004 11:57:26 +0100
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <[email protected]>
On 2 May 2004, at 10:54, Leopold Toetsch wrote:

> Arthur Bergman <[email protected]> wrote:
>
>> ... The obvious answer
>> seems to be to have the embedding interface set the top of stack in
>> each embedding function if it is not set. This would do the right 
>> thing
>> and make it easy to embed parrot.
>
> No. I've posted already this example:
>
>   {
>      PMC *some = pmc_new(...);
>      {
>         PMC *another = pmc_new(...);
>      }
>      // some may be dead here
>   }
>
> The braces denote stack frames.
>

No you have not, you have pasted something that has no relevance what 
so ever to what I am saying unless you give it some more verbosity.

Yes, I know this is the case which is why I have to do

{
a = pmc_new
register_pmc(a)
{
b = pmc_new
register_pmc(b)
}
a should still be alive here
}

By leaving out the needed function you do not convey any response to my 
proposal that parrot embedding functions that detect that no stacktop 
to be set to set them before calling onwards into parrot. Yes, if no 
stacktop is set in my code I need to carefully use regster_pmc, but I 
know that already and it is something I agree to do.

Arthur