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 Stack mark ops & such.
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
 
Jerome Vouillon  
View profile  
 More options Aug 5 2002, 4:48 am
Newsgroups: perl.perl6.internals
From: vouil...@pps.jussieu.fr (Jerome Vouillon)
Date: Mon, 5 Aug 2002 10:43:17 +0200
Local: Mon, Aug 5 2002 4:43 am
Subject: Re: Stack mark ops & such.

On Mon, Aug 05, 2002 at 03:52:11AM -0400, Dan Sugalski wrote:
> Okay, I'm about half a step from putting pushmark, popmark, stack
> marks, and suchlike things into the core. This is everyone's chance
> to tell me how bad an idea that is. :)

How is this going to interact with continuations and coroutines?

For instance, what is the example below supposed to print?  And how
are we going to implement this?

    coroutine foo () {
      do {
        temp $x = 2;
        print "$x\n";
        yield;
        print "$x\n";
      }
      print "$x\n";
      yield;
    }

    $x = 0;
    print "$x\n";
    do {
      temp $x = 1;
      print "$x\n";
      foo ();        # This executes foo up to the first yield
      print "$x\n";
    }
    foo ();          # This executes foo from the first yield to the second one
    print "$x\n";

-- Jerome


 
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.