[perl #130431] [REGRESSION] Subclassing an Int no longer works flawlessly (my Foo $a .= new(42))

2018-02-09 Thread Zoffix Znet via RT
On Thu, 29 Dec 2016 19:26:07 -0800, alex.jakime...@gmail.com wrote: > Another case: > > class MyInt is Int { method even(){ self %% 2 } }; say [1..4].map({ > MyInt.new($_) }).grep({.even}) > > > Seems like it is a common thing to try, but I'm not going to say that > it should > work. Maybe it

[perl #130431] [REGRESSION] Subclassing an Int no longer works flawlessly (my Foo $a .= new(42))

2018-02-09 Thread Zoffix Znet via RT
On Thu, 29 Dec 2016 19:26:07 -0800, alex.jakime...@gmail.com wrote: > Another case: > > class MyInt is Int { method even(){ self %% 2 } }; say [1..4].map({ > MyInt.new($_) }).grep({.even}) > > > Seems like it is a common thing to try, but I'm not going to say that > it should > work. Maybe it

[perl #130431] [REGRESSION] Subclassing an Int no longer works flawlessly (my Foo $a .= new(42))

2016-12-29 Thread Zoffix Znet via RT
On Wed, 28 Dec 2016 18:58:00 -0800, alex.jakime...@gmail.com wrote: > Code: > class Mebibytes is Int { method Str { (self/1024/1024).Int ~ "M" } }; > my Mebibytes $a .= new(183456783); $a.say; # fancy enough? > > > Result (2016.09): > 174M > > > Result (HEAD): > Type check failed in

[perl #130431] [REGRESSION] Subclassing an Int no longer works flawlessly (my Foo $a .= new(42))

2016-12-28 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130431] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130431 > Code: class Mebibytes is Int { method Str { (self/1024/1024).Int ~