[perl #131493] changed type of variable

2017-06-03 Thread Zoffix Znet via RT
On Sat, 03 Jun 2017 07:52:09 -0700, mt1...@gmail.com wrote: > this bug can be closed OK. Closing. On Sat, 03 Jun 2017 02:36:12 -0700, alex.jakime...@gmail.com wrote: > Well, > > say IntStr ~~ Str # True > > In other words, IntStr *is* a Str. > > What I find interesting, however, is this

[perl #131493] changed type of variable

2017-06-03 Thread Zoffix Znet via RT
On Sat, 03 Jun 2017 07:52:09 -0700, mt1...@gmail.com wrote: > this bug can be closed OK. Closing. On Sat, 03 Jun 2017 02:36:12 -0700, alex.jakime...@gmail.com wrote: > Well, > > say IntStr ~~ Str # True > > In other words, IntStr *is* a Str. > > What I find interesting, however, is this

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
After some discussion I've understood that I have to do some homework and that this bug can be closed. Thanks Jnhtn and Araraloren for your help Regards, Marcel

Re: [perl #131493] changed type of variable

2017-06-03 Thread Marcel Timmerman
After some discussion I've understood that I have to do some homework and that this bug can be closed. Thanks Jnhtn and Araraloren for your help Regards, Marcel

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > sub s (Str() :$str) {say $str.WHAT}; s(:str<1>) # IntStr > sub s (Str :$str) {say $str.Str.WHAT}; s(:str<1>) # Str I think the last one is coerced explicitly. Btw I didn't know about 'Str() :$str' specification. What does

Re: [perl #131493] changed type of variable

2017-06-03 Thread Marcel Timmerman
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: sub s (Str() :$str) {say $str.WHAT}; s(:str<1>) # IntStr sub s (Str :$str) {say $str.Str.WHAT}; s(:str<1>) # Str I think the last one is coerced explicitly. Btw I didn't know about 'Str() :$str' specification. What does it

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > say IntStr ~~ Str > say Str ~~ IntStr False

[perl #131493] changed type of variable

2017-06-03 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Well, say IntStr ~~ Str # True In other words, IntStr *is* a Str. What I find interesting, however, is this difference: sub s (Str() :$str) {say $str.WHAT}; s(:str<1>) # IntStr sub s (Str :$str) {say $str.Str.WHAT}; s(:str<1>) # Str I would have expected the same output in both cases. On

[perl #131493] changed type of variable

2017-06-03 Thread via RT
# New Ticket Created by mt1957 # Please include the string: [perl #131493] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131493 > Hi, In Rakudo version 2017.05-338-gaca1929 built on MoarVM version 2017.05-25-g62bc54e