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