Fudge rejected in https://github.com/perl6/roast/commit/79803f6322
Fudge rejected in https://github.com/perl6/roast/commit/79803f6322
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
>
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
>
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
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
> >
> >
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
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
> >
> >
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
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
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
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');
}
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
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
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
> 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 ",
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
17 matches
Mail list logo