Newsgroups: perl.perl6.internals Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org Return-Path: Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm Delivered-To: mailing list perl6-intern...@perl.org Date: Tue, 6 Aug 2002 01:08:33 +0200 To: Dan Sugalski Cc: Jerome Vouillon , perl6-intern...@perl.org Subject: Re: Stack mark ops & such. Message-ID: <20020805230833.GA26596@strontium.pps.jussieu.fr> References: <20020805084317.GA24299@strontium.pps.jussieu.fr> <20020805222755.GA26452@strontium.pps.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Antivirus: scanned by sophie at shiva.jussieu.fr Approved: n...@nntp.perl.org From: vouil...@pps.jussieu.fr (Jerome Vouillon) Lines: 24 On Mon, Aug 05, 2002 at 06:36:14PM -0400, Dan Sugalski wrote: > At 12:27 AM +0200 8/6/02, Jerome Vouillon wrote: > >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. :) This can make sense for globals. But if you replace all occurences of $x by @x[0], will you get the same result? If so, how do you implement this? (And if not, how are you going to explain the difference to the user?) -- Jerome