Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Parenthasized not in Perl 6 -> not()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Larry Wall  
View profile  
 More options Feb 22 2005, 11:30 pm
Newsgroups: perl.perl6.language
From: la...@wall.org (Larry Wall)
Date: Tue, 22 Feb 2005 20:30:12 -0800
Local: Tues, Feb 22 2005 11:30 pm
Subject: Re: Parenthasized not in Perl 6 -> not()
On Tue, Feb 22, 2005 at 10:21:00PM -0600, Steve Peters wrote:

: A recent bug that showed up in Perl 5 caused a few people to wonder what
: the purpose of C<not()>.  It worked up to Perl 5.6 and returned the same
: value as C<not(0)>.  Starting with 5.6, it just core dumped.  This has been
: fixed it in the current bleadperl to go back to its original functionality of
: behaving like C<not(0)>.  Obviously, this is not a regularly used functionality
: since it took almost five years to be found.  The question that a few of us
: discussed is whether it should be allowed at all?  Is it a syntax error?
: If not, what is its purpose?

In Perl 6, not() happens to be a list op just to save a precedence
level, so calling it with 0 args is legal and happens to return a
null list in list context, and undefined in scalar context, I expect.
Sometimes my expector is suspect, however.

Larry


    Reply to author    Forward  
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.
Steve Peters  
View profile  
 More options Feb 22 2005, 11:21 pm
Newsgroups: perl.perl6.language
From: st...@fisharerojo.org (Steve Peters)
Date: Tue, 22 Feb 2005 22:21:00 -0600
Subject: Parenthasized not in Perl 6 -> not()
A recent bug that showed up in Perl 5 caused a few people to wonder what
the purpose of C<not()>.  It worked up to Perl 5.6 and returned the same
value as C<not(0)>.  Starting with 5.6, it just core dumped.  This has been
fixed it in the current bleadperl to go back to its original functionality of
behaving like C<not(0)>.  Obviously, this is not a regularly used functionality
since it took almost five years to be found.  The question that a few of us
discussed is whether it should be allowed at all?  Is it a syntax error?
If not, what is its purpose?

Steve Peters
st...@fisharerojo.org


    Reply to author    Forward  
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.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google