On Tue, 19 Sep 2017 11:12:23 -0700, c...@zoffix.com wrote:
> On Tue, 19 Sep 2017 08:23:07 -0700, c...@zoffix.com wrote:
> > m: class Foo is Int {}; my Foo $x .= new: 42; say $x; say $x.WHAT;
> > rakudo-moar bb4579: OUTPUT: «Type check failed in assignment to $x;
> > expected Foo but got Int (42)
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #132133]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132133 >
IRC finding: https://irclog.perlgeek.de/perl6/2017-09-19#i_15189180
If you use `is rw`
Hi all,
this will sound trivial, but the following piece of code that in my
mind should work does not:
$mode = 'csv' if ( ! $mode.defined || %available_modes{ $mode }:!exists );
and the compiler says:
You can't adverb :<||>
at /home/luca/tmp/am/folken.p6:16
--> ined || %available_modes{
On Sun, 17 Sep 2017 14:04:02 -0700, alex.jakime...@gmail.com wrote:
> It happens often and that's why we sometimes get false-red CI status.
> See
> https://ci.appveyor.com/project/rakudo/rakudo/build/1.0.130/job/yqmgs4uo0yim1bxx
Fixed the MoarVM bug that caused this, and the revision bump took
On Sun, 17 Sep 2017 14:04:02 -0700, alex.jakime...@gmail.com wrote:
> It happens often and that's why we sometimes get false-red CI status.
> See
> https://ci.appveyor.com/project/rakudo/rakudo/build/1.0.130/job/yqmgs4uo0yim1bxx
Fixed the MoarVM bug that caused this, and the revision bump took
Hi all,
I'm trying to understand how to use map correctly to apply several
regexps at once, something like:
my @fields = $line.split( ',' ).map: { s:g/\'//; s:g/^\"|\"$//; $_ };
while the first regexp works, the second fails with "Cannot modify an
immutable Str", but the topic variable should
On Tue, Sep 19, 2017 at 3:44 AM, Luca Ferrari wrote:
> this will sound trivial, but the following piece of code that in my
> mind should work does not:
>
> $mode = 'csv' if ( ! $mode.defined || %available_modes{ $mode }:!exists );
>
> and the compiler says:
>
> You can't
On Mon, 18 Sep 2017 09:22:44 -0700, c...@zoffix.com wrote:
> Another commit shipped out for this ticket:
> https://github.com/rakudo/rakudo/commit/48a84d6aff
Made it throw typed exceptions in
https://github.com/rakudo/rakudo/commit/bb45791c5d
Tests for the whole thing in
On Mon, 18 Sep 2017 09:22:44 -0700, c...@zoffix.com wrote:
> Another commit shipped out for this ticket:
> https://github.com/rakudo/rakudo/commit/48a84d6aff
Made it throw typed exceptions in
https://github.com/rakudo/rakudo/commit/bb45791c5d
Tests for the whole thing in
You'll have to type the $_ of the block as "is copy" if you want to do
this. Another way would be to have "is rw" but that can of course only
work if a container is present in what you map over; there isn't in this
case.
perl6 -e '.perl.say for "hello, how, are, you".split(",").map: -> $_
is
I'd like to see the same behavior that occurs in perl5. That is:
DB<3> mkdir "existingfile" or warn "$!\n"
File exists
DB<4> mkdir "/" or warn "$!\n"
File exists
DB<5> mkdir "/root/noway" or warn "$!\n"
Permission denied
DB<6> mkdir "newdir" or warn "$!\n"
DB<7> mkdir "newdir" or warn
Hey,
When I profiled my "read CSV, munge, write CSV" script to see why it is a bit
on the slow side DateTime.Str stood out. I saw the default formatter eventually
reached sprintf, which consumed a lot of time. Each output line from my script
has one date and time in ISO 8601 format, and when I
On Tue, 19 Sep 2017 08:15:15 -0700, c...@zoffix.com wrote:
> m: use nqp; class Foo is Int { method new ($v) {
> nqp::p6bindattrinvres(self.bless, Int, q|$!value|,
> nqp::getattr(nqp::decont($v), Int, q|$!value|)) } }; my Foo $x .=
> new: 42; say $x; say $x.WHAT;
> rakudo-moar bb4579: OUTPUT:
On Tue, 19 Sep 2017 08:15:15 -0700, c...@zoffix.com wrote:
> m: use nqp; class Foo is Int { method new ($v) {
> nqp::p6bindattrinvres(self.bless, Int, q|$!value|,
> nqp::getattr(nqp::decont($v), Int, q|$!value|)) } }; my Foo $x .=
> new: 42; say $x; say $x.WHAT;
> rakudo-moar bb4579: OUTPUT:
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #132128]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132128 >
m: class Foo is Int {}; my Foo $x .= new: 42; say $x; say $x.WHAT;
rakudo-moar
On Wed, 17 Aug 2016 09:03:15 -0700, c...@zoffix.com wrote:
> Tests added in
> https://github.com/perl6/roast/commit/d0f819872953d08cd9732fef50f2567264fcf41b
There is still the matter of Numeric() in a signature. However since:
$ perl6 -e 'my Numeric() $a;'
===SORRY!=== Error while compiling -e
On Fri, 10 Mar 2017 00:31:58 -0800, sidhe...@gmail.com wrote:
> On Thu, Mar 9, 2017 at 9:17 PM, Brandon Allbery
> wrote:
>
> > On Thu, Mar 9, 2017 at 2:55 PM, Zefram
> > wrote:
> >
> >> The same goes for coercions from other enum types.
> >
> >
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #132126]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132126 >
m: use nqp; class Foo is Int { method new ($v) {
nqp::p6bindattrinvres(self.bless, Int,
On Tue, 19 Sep 2017 08:23:07 -0700, c...@zoffix.com wrote:
> m: class Foo is Int {}; my Foo $x .= new: 42; say $x; say $x.WHAT;
> rakudo-moar bb4579: OUTPUT: «Type check failed in assignment to $x;
> expected Foo but got Int (42) in block at line 1»
>
> This was broken by the fix to make
On Tue, 19 Sep 2017 08:23:07 -0700, c...@zoffix.com wrote:
> m: class Foo is Int {}; my Foo $x .= new: 42; say $x; say $x.WHAT;
> rakudo-moar bb4579: OUTPUT: «Type check failed in assignment to $x;
> expected Foo but got Int (42) in block at line 1»
>
> This was broken by the fix to make
20 matches
Mail list logo