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.

Newsgroups: perl.perl6.internals
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <d...@sidhe.org>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Mime-Version: 1.0
X-Sender: d...@redcap.sidhe.org (Unverified)
Message-ID: <a05111b25b974ae1c7b65@[63.120.19.221]>
In-Reply-To: <20020805222755.GA26452@strontium.pps.jussieu.fr>
References: <a05111b14b973d63571a3@[63.120.19.221]>
 <20020805084317.GA24299@strontium.pps.jussieu.fr>
 <a05111b1bb9747487fc6c@[63.120.19.221]>
 <20020805222755.GA26452@strontium.pps.jussieu.fr>
Date: Mon, 5 Aug 2002 18:36:14 -0400
To: Jerome Vouillon <vouil...@pps.jussieu.fr>
Subject: Re: Stack mark ops & such.
Cc: Jerome Vouillon <vouil...@pps.jussieu.fr>, perl6-intern...@perl.org
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Approved: n...@nntp.perl.org
From: d...@sidhe.org (Dan Sugalski)
Lines: 30

At 12:27 AM +0200 8/6/02, Jerome Vouillon wrote:
>On Mon, Aug 05, 2002 at 02:42:05PM -0400, Dan Sugalski wrote:
>>  At 10:43 AM +0200 8/5/02, Jerome Vouillon wrote:
>>  >How is this going to interact with continuations and coroutines?
>>
>>  Yielding out of a coroutine doesn't unwind anything, so there's no
>>  problem there. We only unwind on a return or uncaught exception.
>
>Have you looked at my example.  It seems to me that the last value of
>$x will be 1 (the value restored by the coroutine), while we would
>probably expect it to be 0 (the initial value).

Since $x is a global, that should be:

0
1
2
1
2
0
0

Through the joys of nested globals namespaces. :)
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk