[perl #132030] [TESTNEEDED] [REGRESSION] Broken Text::CSV tests and possibly other ecosystem fallout

2017-09-13 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
CSS::Specification and CSS::Module: https://github.com/p6-css/CSS-Specification-p6/issues/2 That's basically it. We won't see any other affected modules from toaster data. On 2017-09-13 18:54:42, alex.jakime...@gmail.com wrote: > NCurses, Term::Choose, Term::Choose::Util, and Term::TablePrint: > h

Re: :: question

2017-09-13 Thread ToddAndMargo
On 09/13/2017 10:57 PM, Brandon Allbery wrote: On Thu, Sep 14, 2017 at 1:48 AM, Brandon Allbery > wrote: If you want to use the other way, the CheckSystemDependency module MUST define Which as: our sub Which ... If it is not explicitly declared "our", then

Re: :: question

2017-09-13 Thread Brandon Allbery
On Thu, Sep 14, 2017 at 1:48 AM, Brandon Allbery wrote: > If you want to use the other way, the CheckSystemDependency module MUST > define Which as: our sub Which ... > If it is not explicitly declared "our", then it is declared "my" and the > only way the name can be seen outside the CheckSystem

Re: :: question

2017-09-13 Thread ToddAndMargo
On 09/13/2017 10:48 PM, Brandon Allbery wrote: On Thu, Sep 14, 2017 at 1:42 AM, ToddAndMargo > wrote: On 09/13/2017 10:26 PM, Brandon Allbery wrote: On Thu, Sep 14, 2017 at 12:46 AM, ToddAndMargo mailto:toddandma...@zoho.com>

Re: :: question

2017-09-13 Thread Brandon Allbery
On Thu, Sep 14, 2017 at 1:42 AM, ToddAndMargo wrote: > On 09/13/2017 10:26 PM, Brandon Allbery wrote: > >> On Thu, Sep 14, 2017 at 12:46 AM, ToddAndMargo > > wrote: >> >> What is the Perl6 equivalent of the perl 5 "::"? >> >> $Found = CheckSystemDependancy::W

Re: :: question

2017-09-13 Thread ToddAndMargo
On 09/13/2017 10:26 PM, Brandon Allbery wrote: On Thu, Sep 14, 2017 at 12:46 AM, ToddAndMargo > wrote: What is the Perl6 equivalent of the perl 5 "::"? $Found = CheckSystemDependancy::Which ( $ProgramName, $HowToExit ); It's the same... but unlike Perl 5,

what am I doing wrong here?

2017-09-13 Thread ToddAndMargo
#!/usr/bin/env perl6 # Reference: https://docs.perl6.org/type/CallFrame for 1..* -> $level { given callframe($level) -> $frame { when $frame ~~ CallFrame { next unless $frame.code ~~ Routine; say $frame.code.package; last; } defaul

Re: :: question

2017-09-13 Thread Brandon Allbery
On Thu, Sep 14, 2017 at 12:46 AM, ToddAndMargo wrote: > What is the Perl6 equivalent of the perl 5 "::"? > > $Found = CheckSystemDependancy::Which ( $ProgramName, $HowToExit ); > It's the same... but unlike Perl 5, there is a difference between subs and methods, and subs are lexical by default (

Re: program name and @*ARGS

2017-09-13 Thread ToddAndMargo
On 09/13/2017 09:35 PM, ToddAndMargo wrote: On 09/13/2017 09:33 PM, ToddAndMargo wrote: Hi All, Is there a what the get @*ARGS to cough up the program's name? Many thanks, -T Figured it out: #!/usr/bin/perl print "My name is $0\n"; Oops. This Perl 5 P6 is my $WhoAmI = $*PROGRAM-NA

[perl #132076] next/last controls loop from exception stack instead of lexical loop

2017-09-13 Thread via RT
# New Ticket Created by Vovan-VE # Please include the string: [perl #132076] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132076 > Hello. I'm using rakudo release 2017.07. I'm sure I hit a bug. I could not find something sim

:: question

2017-09-13 Thread ToddAndMargo
Hi All, What is the Perl6 equivalent of the perl 5 "::"? $Found = CheckSystemDependancy::Which ( $ProgramName, $HowToExit ); Many thanks, -T

Re: program name and @*ARGS

2017-09-13 Thread ToddAndMargo
On 09/13/2017 09:33 PM, ToddAndMargo wrote: Hi All, Is there a what the get @*ARGS to cough up the program's name? Many thanks, -T Figured it out: #!/usr/bin/perl print "My name is $0\n"; -- ~~ Computers are like air conditioners. They malfunction whe

program name and @*ARGS

2017-09-13 Thread ToddAndMargo
Hi All, Is there a what the get @*ARGS to cough up the program's name? Many thanks, -T

[perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Thanks! On 2017-09-13 21:02:09, lloyd.fo...@gmail.com wrote: > I think we can close this. It's most likely an internals change > because I > call nqp::setparameterizer() directly. I'll figure out what the > problem is > eventually and if I can't fix it myself I'll open a more concise RT. > > Cheer

Re: [perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread Lloyd Fournier via RT
I think we can close this. It's most likely an internals change because I call nqp::setparameterizer() directly. I'll figure out what the problem is eventually and if I can't fix it myself I'll open a more concise RT. Cheers LL On Thu, Sep 14, 2017 at 1:27 PM Aleks-Daniel Jakimenko-Aleksejev < p

Re: [perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread Lloyd Fournier
I think we can close this. It's most likely an internals change because I call nqp::setparameterizer() directly. I'll figure out what the problem is eventually and if I can't fix it myself I'll open a more concise RT. Cheers LL On Thu, Sep 14, 2017 at 1:27 PM Aleks-Daniel Jakimenko-Aleksejev < p

[perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #132085] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132085 > Spit tests are failing on HEAD (https://github.com/spitsh/spitsh). E

[perl #131962] [TESTNEEDED] [REGRESSION] `Pair.kv`/`.keys`/.`values` dies if either the key or the value is `Mu`

2017-09-13 Thread Brian S. Julin via RT
On Sat, 26 Aug 2017 06:17:15 -0700, elizabeth wrote: > Fixed with a5014fd0855545cc083b3590 , tests needed. > > > On 26 Aug 2017, at 13:10, Sam S. (via RT) > follo...@perl.org> wrote: > > > > # New Ticket Created by Sam S. > > # Please include the string: [perl #131962] > > # in the subject line

[perl #132083] [REGRESSION] Possible regression with native ints

2017-09-13 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #132083] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132083 > Two tests in Data::MessagePack started to fail: Test Summary Report

[perl #132081] [LTA] Wrong exception type on bad attribute default values

2017-09-13 Thread Brian S. Julin via RT
On Wed, 13 Sep 2017 18:21:56 -0700, b...@abrij.org wrote: > $ perl6 -e 'my Int $a is default("foo");' > ===SORRY!=== Error while compiling -e > Default value 'foo' will never bind to a parameter of type Int > at -e:1 > --> my Int $a is default("foo")⏏; > expecting any of: > constrai

[perl #126318] [BUG] trait 'is default' on attributes has no effect

2017-09-13 Thread Brian S. Julin via RT
On Wed, 13 Sep 2017 19:15:36 -0700, b...@abrij.org wrote: > On Fri, 16 Oct 2015 00:54:21 -0700, larry wrote: > > On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > > > say class { has Int $.foo is default(0) }.new.foo > > > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > > > > > class Foo { has Int $.foo is d

[perl #126318] [BUG][TESTNEEDED] trait 'is default' on attributes has no effect

2017-09-13 Thread Brian S. Julin via RT
On Fri, 16 Oct 2015 00:54:21 -0700, larry wrote: > On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > > say class { has Int $.foo is default(0) }.new.foo > > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > > > class Foo { has Int $.foo is default(0) }; say Foo.new.foo > > rakudo-moar 025ec1: OUTPUT«(Int)␤» >

[perl #132030] [TESTNEEDED] [REGRESSION] Broken Text::CSV tests and possibly other ecosystem fallout

2017-09-13 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
NCurses, Term::Choose, Term::Choose::Util, and Term::TablePrint: https://github.com/azawawi/perl6-ncurses/issues/16 This one is weird because it seems to be working unless you run it under prove. Perhaps the module is alright but it's the test that is broken. On 2017-09-13 18:16:56, alex.jakime..

[perl #131387] [TESTNEEDED] `is default` value not applied to attributes by default

2017-09-13 Thread Brian S. Julin via RT
On Tue, 12 Sep 2017 06:57:13 -0700, jn...@jnthn.net wrote: > On Sat, 27 May 2017 19:35:53 -0700, c...@zoffix.com wrote: > > $z is `Nil` without my having to assign anything, while `$!z` is Any. > > To make `$!z` Nil I also have to assign Nil to it: > > > > m: my $z is default(Nil); dd $z;class

[perl #132082] [BUG] "is default(Mu)" parse failure when used on attribute

2017-09-13 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132082] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132082 > "is default(Mu)" works fine on a variable, but runs into syntax issues on attribute

[perl #132081] [LTA] Wrong exception type on bad attribute default values

2017-09-13 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132081] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132081 > $ perl6 -e 'my Int $a is default("foo");' ===SORRY!=== Error while compiling -e Defau

[perl #132030] [TESTNEEDED] [REGRESSION] Broken Text::CSV tests and possibly other ecosystem fallout

2017-09-13 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
FWIW there is still some ecosystem fallout (possibly very minor). I'll be linking issues here so that we have all things in one place. IO::MiddleMan and Lumberjack: https://github.com/zoffixznet/perl6-IO-MiddleMan/issues/5 On 2017-09-11 04:18:39, elizabeth wrote: > Fixed with 3c9cfdba88287e23e0ced

Re: Who called me?

2017-09-13 Thread Brandon Allbery
On Wed, Sep 13, 2017 at 8:15 PM, ToddAndMargo wrote: > Would this be what I am looking for? > > > for 1..* -> $level { > given callframe($level) -> $frame { > when $frame ~~ CallFrame { > next unless $frame.code ~~ Routine; > say $frame.code.package; >

Re: Who called me?

2017-09-13 Thread ToddAndMargo
On 09/13/2017 05:15 PM, ToddAndMargo wrote: On 09/13/2017 05:01 PM, Brandon Allbery wrote: On Wed, Sep 13, 2017 at 7:56 PM, ToddAndMargo > wrote: I am trying to convert this from Perl 5: my $WhoCalledMe = ( caller(0) )[1]; I use it inside a sub t

Re: Who called me?

2017-09-13 Thread ToddAndMargo
On 09/13/2017 05:01 PM, Brandon Allbery wrote: On Wed, Sep 13, 2017 at 7:56 PM, ToddAndMargo > wrote: I am trying to convert this from Perl 5: my $WhoCalledMe = ( caller(0) )[1]; I use it inside a sub to determine who called the sub. How is t

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-13 Thread Norman Gaywood
Thanks for that Trey! Previously I would just glance at those definitions and move straight to the examples. Now I can read them! Something like this explanation should be on a docs.perl6.org page. Maybe it is and I've just not found it. On 14 September 2017 at 06:36, Trey Harris wrote: > On S

Re: stderr?

2017-09-13 Thread ToddAndMargo
On 09/13/2017 04:57 PM, Brandon Allbery wrote: On Wed, Sep 13, 2017 at 7:51 PM, ToddAndMargo > wrote: How do I print to STDERR? $*ERR? $ perl6 -e 'print $*ERR, "print to std err\n";' print to std err What am I doing wrong? Use the OO form: $*ERR

Re: Who called me?

2017-09-13 Thread Brandon Allbery
On Wed, Sep 13, 2017 at 7:56 PM, ToddAndMargo wrote: > I am trying to convert this from Perl 5: > > my $WhoCalledMe = ( caller(0) )[1]; > > I use it inside a sub to determine who called the sub. > > How is this done in P6? > You want the callframe method. Note that it can be a bit more compl

Re: stderr?

2017-09-13 Thread Brandon Allbery
On Wed, Sep 13, 2017 at 7:51 PM, ToddAndMargo wrote: > How do I print to STDERR? $*ERR? > > $ perl6 -e 'print $*ERR, "print to std err\n";' > print to std err > > What am I doing wrong? > Use the OO form: $*ERR.print: "print to std err\n"; Unlike Perl 5, there is no special syntactic form that

Who called me?

2017-09-13 Thread ToddAndMargo
Hi All, I am trying to convert this from Perl 5: my $WhoCalledMe = ( caller(0) )[1]; I use it inside a sub to determine who called the sub. How is this done in P6? Many thanks, -T

stderr?

2017-09-13 Thread ToddAndMargo
Hi All, How do I print to STDERR? $*ERR? $ perl6 -e 'print $*ERR, "print to std err\n";' print to std err What am I doing wrong? Many thanks, -T

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-13 Thread ToddAndMargo
On 09/13/2017 01:36 PM, Trey Harris wrote: On Sat, Sep 9, 2017 at 3:55 PM ToddAndMargo toddandma...@zoho.com wrote: On 09/09/2017 07:00 AM, Timo Paulssen wrote: > This should be enlightening: https://docs.perl6.org/routine/getc > Problem:

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-13 Thread Trey Harris
On Sat, Sep 9, 2017 at 3:55 PM ToddAndMargo toddandma...@zoho.com wrote: On 09/09/2017 07:00 AM, Timo Paulssen wrote: > > This should be enlightening: https://docs.perl6.org/routine/getc > > > > Problem: also from the link: > > method getc(IO::Handle:D: -

[perl #129019] [BUG] Range.WHICH fails on many kinds of endpoints

2017-09-13 Thread Brian S. Julin via RT
On Wed, 13 Sep 2017 10:29:05 -0700, zef...@fysh.org wrote: > Brian S. Julin via RT wrote: > > it would be OK for there to be some tiny chance > > of a collision between two WHICH.Str's as long as the actual WHICHs > > do not collide. > > One could make that distinction, but then the .Str of the .W

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-13 Thread ToddAndMargo
On 09/08/2017 11:41 PM, ToddAndMargo wrote: Hi All! I am trying to convert some Perl 5 code to Perl 6. What do I use in place of use Term::ReadKey qw ( ReadKey ReadMode ); I am trying to convert the following: use Term::ReadKey qw ( ReadKey ReadMode ); sub DumpKeyboard () { # Dump

Re: [perl #129019] [BUG] Range.WHICH fails on many kinds of endpoints

2017-09-13 Thread Zefram via RT
Brian S. Julin via RT wrote: > it would be OK for there to be some tiny chance >of a collision between two WHICH.Str's as long as the actual WHICHs >do not collide. One could make that distinction, but then the .Str of the .WHICH would not fulfill the purposes for which .WHICH

Re: [perl #129019] [BUG] Range.WHICH fails on many kinds of endpoints

2017-09-13 Thread Zefram
Brian S. Julin via RT wrote: > it would be OK for there to be some tiny chance >of a collision between two WHICH.Str's as long as the actual WHICHs >do not collide. One could make that distinction, but then the .Str of the .WHICH would not fulfill the purposes for which .WHICH

[perl #129019] [BUG] Range.WHICH fails on many kinds of endpoints

2017-09-13 Thread Brian S. Julin via RT
On Wed, 30 Aug 2017 07:03:10 -0700, zef...@fysh.org wrote: > Brian S. Julin via RT wrote: > >For example "Foo^".."Bar" and "Foo"^.."Bar" would put out the same WHICH. > > Yes, and that's a bigger problem. In general Rakudo's .WHICH methods > suffer this sort of problem when incorporating the .WHI

Re: lats rakudo version from rakudobrew ?

2017-09-13 Thread Marc Chantreux
hello, > This is one of the gotchas of rakudobrew. It determines the version from > the most recent release tag... but it uses git in default fetch mode, which > only pulls the most recent tag and never updates it, so your updates will > have the right commit hash but the wrong version from that p