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
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
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
# 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 ~