Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Continuations don't close over register stacks
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luke Palmer  
View profile  
 More options Jan 6 2004, 10:00 am
Newsgroups: perl.perl6.internals
From: fibon...@babylonia.flatirons.org (Luke Palmer)
Date: Tue, 6 Jan 2004 07:53:24 -0700
Local: Tues, Jan 6 2004 9:53 am
Subject: Continuations don't close over register stacks
Aren't continuations supposed to close over the register stacks?  In
this code:

    .sub _main
        I17 = 42
        savetop
        newsub P0, .Continuation, second
        restoretop
        invoke P0
    second:
        restoretop
        print I17
        print "\n"
        end
    .end

I should hope to get 42, but instead I get "no more I frames to pop."
They're not very good continuations if you have to treat them just like
an address stack!

Note that if they do, the code generated by the PCC constructs will have
to change to:

    savetop
    newsub P1, .RetContinuation, @retlabel
    invoke
    restoretop

Rather than saving right before the invoke.  This makes a lot more sense
to me, anyway.

Luke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.