develooper Front page | perl.fwp | Postings from March 2012

Re: The sperm secret operator: is it new?

Thread Previous
From:
Yitzchak Scott-Thoennes
Date:
March 14, 2012 16:02
Subject:
Re: The sperm secret operator: is it new?
Message ID:
CAN7g7HWf6soPNPQXgyC=y+Y2VOstp3yUVhtWVL2h4VY4eLp+Fg@mail.gmail.com
On Wed, Mar 14, 2012 at 3:50 PM, Philippe Bruhat (BooK)
<philippe.bruhat@free.fr> wrote:
> Frankly, I think this could be considered a bug. Both the left-facing
> and right-facing versions of the inchworm on a stick should work on
> all integers in Perl. Complement two arithmetics demand it! Now, the
> question is, how long has this been broken in Perl? Forever?

I don't consider it a bug.  ~ has to either assume signed or unsigned.

You get a choice by whether you do it under the scope of use integer
(implicit: comma signed) or not.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About