Skip Menu |
Report information
Id: 129220
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: lloyd.fourn [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] .list,.List, (Real,) inconsistencies
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
Date: Wed, 07 Sep 2016 14:32:15 +0000
To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
Download (untitled) / with headers
text/plain 485b
say (Real,) ~~ Real.list;   # False
say (Real,) ~~ Real.List;   # False
say Real.list ~~ (Real,);   # True
say Real.list ~~ Real.List; # True
say Real.List ~~ (Real,);   # True
say Real.List ~~ Real.list; # True

say (Cool,) ~~ Cool.list;   # True
say (Cool,) ~~ Cool.List;   # True
say Cool.list ~~ (Cool,);   # True
say Cool.list ~~ Cool.List; # True
say Cool.List ~~ (Cool,);   # True
say Cool.List ~~ Cool.list; # True

(Real,) seems to be a special snowflake and that's not Cool.
Subject: Re: [perl #129220] [BUG] .list,.List, (Real,) inconsistencies
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
To: perl6-compiler [...] perl.org, bugs-bitbucket [...] rt.perl.org
Date: Wed, 07 Sep 2016 15:10:02 +0000
I Realised what's happening. Real is a role so calling .list on it puns it.

so the phenomenon can be boiled down to:

 Real ~~ Real.^pun # False

I'm not sure if it should be that way. I will accept notabug though :)

On Thu, Sep 8, 2016 at 12:33 AM Lloyd Fournier <perl6-bugs-followup@perl.org> wrote:
Show quoted text
# New Ticket Created by  Lloyd Fournier
# Please include the string:  [perl #129220]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=129220 >


say (Real,) ~~ Real.list;   # False
say (Real,) ~~ Real.List;   # False
say Real.list ~~ (Real,);   # True
say Real.list ~~ Real.List; # True
say Real.List ~~ (Real,);   # True
say Real.List ~~ Real.list; # True

say (Cool,) ~~ Cool.list;   # True
say (Cool,) ~~ Cool.List;   # True
say Cool.list ~~ (Cool,);   # True
say Cool.list ~~ Cool.List; # True
say Cool.List ~~ (Cool,);   # True
say Cool.List ~~ Cool.list; # True

(Real,) seems to be a special snowflake and that's not Cool.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org