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
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
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
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
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
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
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote:
> say IntStr ~~ Str
> say Str ~~ IntStr
False
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
# 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