Newsgroups: perl.perl6.compiler
From: ste...@iinteractive.com (Stevan Little)
Date: Mon, 18 Apr 2005 00:08:36 -0400
Local: Mon, Apr 18 2005 12:08 am
Subject: PugsBugs: Weird behavior of shift
These examples:
pugs -e 'say shift [1, 2, 3].shift' do not ever return, but yet does not seem to chew up the CPU either. Meanwhile, these examples: pugs -e 'say pop [1, 2, 3].pop' all print '3'. Just a weird one, I thought I would share it. I am not even sure it is Stevan 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.
| ||||||||||||||
Newsgroups: perl.perl6.compiler
From: la...@wall.org (Larry Wall)
Date: Mon, 18 Apr 2005 07:18:29 -0700
Local: Mon, Apr 18 2005 10:18 am
Subject: Re: PugsBugs: Weird behavior of shift
On Mon, Apr 18, 2005 at 12:08:36AM -0400, Stevan Little wrote: : These examples: : : pugs -e 'say shift [1, 2, 3].shift' : pugs -e 'say shift([1, 2, 3].shift)' : pugs -e 'say shift([1, 2, 3]).shift' : : do not ever return, but yet does not seem to chew up the CPU either. I don't see how those can be semantically valid, even if they parse. : Meanwhile, these examples: Same problem. 3.pop doesn't mean much. All I can figure is that Larry 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.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2009 Google |