Hi All,
Fedora Code 25
# rpm -qa rak\*
rakudo-0.2017.04.2-2.fc25.x86_64
# perl6 --version
This is Rakudo version 2017.04.2 built on MoarVM version 2017.04
implementing Perl 6.c.
One of my programs suddenly stop working with the following
error message:
Could not find Net::SMTP at line 58 in:
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 8638e717e576daaed6d70dc03613dc28fab7a1d6
https://github.com/perl6/specs/commit/8638e717e576daaed6d70dc03613dc28fab7a1d6
Author: Zoffix Znet
Date: 2017-05-16 (Tue, 16 May 2017)
Changed paths:
M v6d.po
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: edb5c57af6e75770e095117002c99778347b289a
https://github.com/perl6/specs/commit/edb5c57af6e75770e095117002c99778347b289a
Author: Zoffix Znet
Date: 2017-05-17 (Wed, 17 May 2017)
Changed paths:
M v6d.po
On Wed, 26 Apr 2017 06:31:06 -0700, c...@zoffix.com wrote:
> On Thu, 05 Jan 2017 07:59:29 -0800, alex.jakime...@gmail.com wrote:
> > Code:
> > say { 0 => 1, 1 => 0 }.max(:by(*.value))
> >
> > Result:
> > 1 => 0
> >
> >
> > Code:
> > say { 0 => 1, 1 => 0 }.max(*.value)
> >
> > Result:
> > 0 => 1
> >
On Wed, 26 Apr 2017 06:31:06 -0700, c...@zoffix.com wrote:
> On Thu, 05 Jan 2017 07:59:29 -0800, alex.jakime...@gmail.com wrote:
> > Code:
> > say { 0 => 1, 1 => 0 }.max(:by(*.value))
> >
> > Result:
> > 1 => 0
> >
> >
> > Code:
> > say { 0 => 1, 1 => 0 }.max(*.value)
> >
> > Result:
> > 0 => 1
> >
> How come last one should be same? Aren't they different types? I'd expect
> `Array[Int] ~~ Positional[Numeric]` to give False
They are different types, but one could logically be considered a "subtype" of
the other (and would be in some programming languages).
E.g. in C#, a class Foo which ta