[perl #124540] Roast rakudo skip/todo test:./S03-operators/context-forcers.t line:96 reason: 'failure modes of Str.Numeric'

2017-12-30 Thread Zoffix Znet via RT
Fudge rejected in https://github.com/perl6/roast/commit/79803f6322

[perl #124540] Roast rakudo skip/todo test:./S03-operators/context-forcers.t line:96 reason: 'failure modes of Str.Numeric'

2017-12-30 Thread Zoffix Znet via RT
Fudge rejected in https://github.com/perl6/roast/commit/79803f6322

[perl #130459] Some operations with Inf.Rat blow up (Inf.Rat.perl)

2017-12-30 Thread Zoffix Znet via RT
On Fri, 30 Dec 2016 13:31:00 -0800, alex.jakime...@gmail.com wrote: > Code: > say Inf.Rat.perl > > Result: > P6opaque: get_boxed_ref could not unbox for the representation '20' of > type Num > in block at -e line 1 > > > What's 20? :) > Anyway, Num-ish Rats were first added in >

[perl #130459] Some operations with Inf.Rat blow up (Inf.Rat.perl)

2017-12-30 Thread Zoffix Znet via RT
On Fri, 30 Dec 2016 13:31:00 -0800, alex.jakime...@gmail.com wrote: > Code: > say Inf.Rat.perl > > Result: > P6opaque: get_boxed_ref could not unbox for the representation '20' of > type Num > in block at -e line 1 > > > What's 20? :) > Anyway, Num-ish Rats were first added in >

[perl #128857] [LTA] ∞.Rat ~~ Rat is False

2017-12-30 Thread Zoffix Znet via RT
On Fri, 05 Aug 2016 20:18:01 -0700, c...@zoffix.com wrote: > TimToady's comments on the matter: http://irclog.perlgeek.de/perl6- > dev/2016-08-06#i_12976358 > > I stumbled on this while examining > https://rt.perl.org/Ticket/Display.html?id=127341#ticket-history > > It seems this commit had a

[perl #130171] [LTA] Inf.Rat.perl produces a really bad error message (Inf.Rat.perl)

2017-12-30 Thread Zoffix Znet via RT
On Thu, 24 Nov 2016 11:42:36 -0800, nicholas wrote: > On Thu, 24 Nov 2016 11:28:06 -0800, alex.jakime...@gmail.com wrote: > > *Code:* > > Inf.Rat.perl > > > > *Result:* > > P6opaque: get_boxed_ref could not unbox for the representation '20' > > of type > > Num > > in block at -e line 1 > > > >

[perl #128857] [LTA] ∞.Rat ~~ Rat is False

2017-12-30 Thread Zoffix Znet via RT
On Fri, 05 Aug 2016 20:18:01 -0700, c...@zoffix.com wrote: > TimToady's comments on the matter: http://irclog.perlgeek.de/perl6- > dev/2016-08-06#i_12976358 > > I stumbled on this while examining > https://rt.perl.org/Ticket/Display.html?id=127341#ticket-history > > It seems this commit had a

[perl #130171] [LTA] Inf.Rat.perl produces a really bad error message (Inf.Rat.perl)

2017-12-30 Thread Zoffix Znet via RT
On Thu, 24 Nov 2016 11:42:36 -0800, nicholas wrote: > On Thu, 24 Nov 2016 11:28:06 -0800, alex.jakime...@gmail.com wrote: > > *Code:* > > Inf.Rat.perl > > > > *Result:* > > P6opaque: get_boxed_ref could not unbox for the representation '20' > > of type > > Num > > in block at -e line 1 > > > >

[perl #74648] Rakudo fails when creating Rat from Inf.Int / 1

2017-12-30 Thread Zoffix Znet via RT
On Wed, 23 Jun 2010 08:28:18 -0700, bbkr wrote: > > > [17:27] r31416 | bbkr++ | [t/spec/S32-num/rat.t] RT #75636 > Inf.Int/1 fails to create Rat In another ticket it was rules Inf.Int is not convertable, so `Inf.Int` part fails with `X::Numeric::CannotConvert`, and explodes in `/1` part. Test

[perl #74648] Rakudo fails when creating Rat from Inf.Int / 1

2017-12-30 Thread Zoffix Znet via RT
On Wed, 23 Jun 2010 08:28:18 -0700, bbkr wrote: > > > [17:27] r31416 | bbkr++ | [t/spec/S32-num/rat.t] RT #75636 > Inf.Int/1 fails to create Rat In another ticket it was rules Inf.Int is not convertable, so `Inf.Int` part fails with `X::Numeric::CannotConvert`, and explodes in `/1` part. Test

[perl #126531] [JVM] not throwing X::Parameter::RW

2017-12-30 Thread Christian Bartolomaeus via RT
On Sat, 31 Oct 2015 20:35:24 -0700, coke wrote: > Many tests in S03-operators/increment.t are throwing ad hoc exceptions > instead of X::Parameter::RW There have been some changes in this area: 1) With roast commit https://github.com/perl6/roast/commit/93736e7f73 the failing tests have been

Re: How to accomplish a method interpolation?

2017-12-30 Thread clasclin .
Ohhh I see the parens are significant. Now this works :) method !show-item ($msg, $item, $attr) { say " $msg ", %!items{$item}."$attr"() if %!items{$item}:exists; } method show { for { self!show-item(.values.tc, .values, 'amount'); }

Re: How to accomplish a method interpolation?

2017-12-30 Thread Brandon Allbery
Uh, it's a D thing. It's not just a programmatic container representing inventory, but has its own gameplay qualities (in original D, for example, it reduced inventory weight by a lot). I'd guess that currently it's not doing anything special, but might well be intended to do so later --- either

Re: How to accomplish a method interpolation?

2017-12-30 Thread Elizabeth Mattijsen
But that's the kind of semantic that Bag/BagHashes are meant to perform: a "bag of holding”! Or am I missing something? > On 30 Dec 2017, at 12:55, Brandon Allbery wrote: > > I think this is just name collision; this sounds like a dungeon crawler type > thing and it's a

Re: How to accomplish a method interpolation?

2017-12-30 Thread Brandon Allbery
I think this is just name collision; this sounds like a dungeon crawler type thing and it's a "bag of holding". On Sat, Dec 30, 2017 at 6:45 AM, Elizabeth Mattijsen wrote: > > On 30 Dec 2017, at 06:13, clasclin . wrote: > > > > I'm reading a book "Make your

Re: How to accomplish a method interpolation?

2017-12-30 Thread Elizabeth Mattijsen
> On 30 Dec 2017, at 06:13, clasclin . wrote: > > I'm reading a book "Make your own python text adventure" and decided to give > it a try with perl6. So this code works as expected. > > class Bag { > has %.items; > > method show { > say "ropa ",

Re: How to accomplish a method interpolation?

2017-12-30 Thread Siavash
What you want is `%items{$item}."$attr"()`. But if all you want is removing the show's repetition, maybe there are other ways, for example: for %!items:kv { say $^key.tc, ' ', $^value.amount; } or if you want all items: for %!items { say .key.tc, ' ', .value.amount; } On 2017-12-30