[perl #131478] Warning about $. when using metamethod

2017-06-01 Thread via RT
# New Ticket Created by Juerd Waalboer # Please include the string: [perl #131478] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131478 > code: class Command { method Str { "<$.^name>" } } # or even just: class

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Sverre Eldøy via RT
./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ; perl6 -v input = 3 1 4 1 5 9 2 6 Tried to get the result of a broken Promise in block at ./quicksort_concurrent.p6 line 17 Original exception: Cannot resolve caller infix:(Mu, Int); none of these signatures

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Sverre Eldøy
And three more tries: ./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 input = 3 1 4 1 5 9 2 6 Segmentation fault: 11 input = 3 1 4 1 5 9 2 6 Tried to get the result of a broken Promise in block at ./quicksort_concurrent.p6 line 17 Original exception:

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Sverre Eldøy via RT
And three more tries: ./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 input = 3 1 4 1 5 9 2 6 Segmentation fault: 11 input = 3 1 4 1 5 9 2 6 Tried to get the result of a broken Promise in block at ./quicksort_concurrent.p6 line 17 Original exception:

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Sverre Eldøy
./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ; perl6 -v input = 3 1 4 1 5 9 2 6 Tried to get the result of a broken Promise in block at ./quicksort_concurrent.p6 line 17 Original exception: Cannot resolve caller infix:(Mu, Int); none of these signatures

[perl #131479] [ASYNC] Proc::Async.kill doesn't seem to work when more than 1 proc is involved

2017-06-01 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131479] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131479 > This appears to hang more often than not, despite printing "Killing" messages. perl6 -e

[perl #131201] [LTA] error message when proto has no implementation (class A { proto method x { * }; })

2017-06-01 Thread Zoffix Znet via RT
On Mon, 24 Apr 2017 04:32:33 -0700, alex.jakime...@gmail.com wrote: > Code: > class A { > proto method x { * }; > }; > A.x > > > Result: > Use of uninitialized value of type Any in string context. > Methods .^name, .perl, .gist, or .say can be used to stringify it to > something meaningful. >

[perl #131201] [LTA] error message when proto has no implementation (class A { proto method x { * }; })

2017-06-01 Thread Zoffix Znet via RT
On Mon, 24 Apr 2017 04:32:33 -0700, alex.jakime...@gmail.com wrote: > Code: > class A { > proto method x { * }; > }; > A.x > > > Result: > Use of uninitialized value of type Any in string context. > Methods .^name, .perl, .gist, or .say can be used to stringify it to > something meaningful. >

[perl #131367] [LTA] .splice and .split methods candidate error

2017-06-01 Thread Zoffix Znet via RT
On Thu, 25 May 2017 09:51:53 -0700, c...@zoffix.com wrote: > Something's fishy going on with .splice. It feels like a multi without > any candidates. > > I vaguely recall a commit going in adding splice proto to Mu, so > perhaps that's the cause. > > The error gives uninitialized string warning

[perl #131367] [LTA] .splice and .split methods candidate error

2017-06-01 Thread Zoffix Znet via RT
On Thu, 25 May 2017 09:51:53 -0700, c...@zoffix.com wrote: > Something's fishy going on with .splice. It feels like a multi without > any candidates. > > I vaguely recall a commit going in adding splice proto to Mu, so > perhaps that's the cause. > > The error gives uninitialized string warning

[perl #131477] [BUG] hyperoperator on an undefined typed array hangs

2017-06-01 Thread Zoffix Znet via RT
On Thu, 01 Jun 2017 12:18:31 -0700, c...@tilmes.org wrote: > m: my Array[Int] $x; say $x>>.Str; > rakudo-moar 92c187: OUTPUT: «(timeout)» > bisectable6: my Array[Int] $x; say $x>>.Str; > timotimo, On both starting points (old=2015.12 new=92c187d) > the exit code is 0, exit signal is 1 (SIGHUP)

[perl #131477] [BUG] hyperoperator on an undefined typed array hangs

2017-06-01 Thread Zoffix Znet via RT
On Thu, 01 Jun 2017 12:18:31 -0700, c...@tilmes.org wrote: > m: my Array[Int] $x; say $x>>.Str; > rakudo-moar 92c187: OUTPUT: «(timeout)» > bisectable6: my Array[Int] $x; say $x>>.Str; > timotimo, On both starting points (old=2015.12 new=92c187d) > the exit code is 0, exit signal is 1 (SIGHUP)

Is there a linter for Perl 6? (like Perl::Critic or pylint)

2017-06-01 Thread Gabor Szabo
e.g. I'd like to check that every pl pm and t file in our project has a "use v6;" at the beginning. regards Gabor

Re: ding!

2017-06-01 Thread Brent Laabs
The lack of sound is probably from your terminal. For instance, iTerm2.app has the "Silence Bell" option in Preferences > Profiles. On macOS, this makes a ding noise: perl6 -e 'run ' or perl6 -e 'run ' On Wed, May 31, 2017 at 9:18 PM, ToddAndMargo wrote: > On 05/31/2017

[perl #131476] list named argument in MAIN

2017-06-01 Thread via RT
# New Ticket Created by mt1957 # Please include the string: [perl #131476] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131476 > Hi I had some discussion on the perl6 users list involving the use of a List named argument.

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Sverre Eldøy via RT
Hi! Sorry for the late reply. I just tried it on 2017.04 ... and the problem is still there.. So please reopen > On 29 May 2017, at 20:53, Will Coleda via RT > wrote: > > According to our records, your request regarding > "concurrent quicksort from Damien gives

Re: [perl #131398] Feature Request: trait for unimplemented subs/methods

2017-06-01 Thread Parrot Raiser via RT
That is so easy for a programmer to implement; I have an "nyi" subroutine/function in the my skeleton scripts for both Perl 5 and Bash. Is it worth cluttering the language?

[perl #131412] [BUG] Label.goto() not yet implemented

2017-06-01 Thread via RT
# New Ticket Created by Kais Ben Salah # Please include the string: [perl #131412] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131412 > Hello, perl6 is showing "Label.goto() not yet implemented. Sorry.". Further

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Sverre Eldøy
Hi! Sorry for the late reply. I just tried it on 2017.04 ... and the problem is still there.. So please reopen > On 29 May 2017, at 20:53, Will Coleda via RT > wrote: > > According to our records, your request regarding > "concurrent quicksort from Damien gives

Re: [perl #131412] [BUG] Label.goto() not yet implemented

2017-06-01 Thread Elizabeth Mattijsen via RT
> On 31 May 2017, at 19:53, Kais Ben Salah (via RT) > wrote: > > # New Ticket Created by Kais Ben Salah > # Please include the string: [perl #131412] > # in the subject line of all future correspondence about this issue. > #

Re: [perl #131412] [BUG] Label.goto() not yet implemented

2017-06-01 Thread Elizabeth Mattijsen
> On 31 May 2017, at 19:53, Kais Ben Salah (via RT) > wrote: > > # New Ticket Created by Kais Ben Salah > # Please include the string: [perl #131412] > # in the subject line of all future correspondence about this issue. > #

Re: Is there a linter for Perl 6? (like Perl::Critic or pylint)

2017-06-01 Thread Ahmad Zawawi
Hi Gabor, Like https://atom.io/packages/atom-perl6-editor-tools for instance or project-level linting? Regards, Ahmad On Thu, Jun 1, 2017 at 9:02 AM, Gabor Szabo wrote: > e.g. I'd like to check that every pl pm and t file in our project has a > "use v6;" at the beginning.

list named argument in MAIN

2017-06-01 Thread Marcel Timmerman
Hi, How can I read a list of items from the command line. Something like; mkdir.pl6 --dirs=d1,d2,d3 I thought I could do something like; sub MAIN (List :$dirs=[]) { mkdir($_) for @$dirs; } But it keeps displaying the usage message Greetings, Marcel

Re: list named argument in MAIN

2017-06-01 Thread Timo Paulssen
It seems like this only works if you supply --dirs= multiple times perl6 -e 'sub MAIN (List :$dirs=[]) { .say for @$dirs }' --dirs=d1 --dirs=d2 --dirs=d3 d1 d2 d3 HTH - Timo

[perl #131477] [BUG] hyperoperator on an undefined typed array hangs

2017-06-01 Thread via RT
# New Ticket Created by Curt Tilmes # Please include the string: [perl #131477] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131477 > m: my Array[Int] $x; say $x>>.Str; rakudo-moar 92c187: OUTPUT: «(timeout)»

Creating an array of a single hash

2017-06-01 Thread Gabor Szabo
use v6; my @x = { name => "Foo" }, { name => "Bar"} say @x.gist; # [{name => Foo} {name => Bar}] say @x.^name;# Array say @x[0].^name; # Hash my @y = { name => "Foo" } say @y; # [name => Foo] say @y.^name; # Array say @y[0].^name; # Pair my @z = { name => "Foo" },; say

Re: list named argument in MAIN

2017-06-01 Thread Marcel Timmerman
On 06/01/2017 02:11 PM, Timo Paulssen wrote: It seems like this only works if you supply --dirs= multiple times perl6 -e 'sub MAIN (List :$dirs=[]) { .say for @$dirs }' --dirs=d1 --dirs=d2 --dirs=d3 d1 d2 d3 HTH - Timo Thanks Timo, Just tested this and it works. But

Re: list named argument in MAIN

2017-06-01 Thread H.Merijn Brand
On Thu, 1 Jun 2017 14:11:47 +0200, Timo Paulssen wrote: > It seems like this only works if you supply --dirs= multiple times > > perl6 -e 'sub MAIN (List :$dirs=[]) { .say for @$dirs }' --dirs=d1 > --dirs=d2 --dirs=d3 > > d1 > d2 > d3 took me a bit as it

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Elizabeth Mattijsen
Could you please retry on 2017.05? I cannot reproduce the problem, even after 1000 runs. > On 30 May 2017, at 17:25, Sverre Eldøy wrote: > > Hi! Sorry for the late reply. I just tried it on 2017.04 ... and the problem > is still there.. So please reopen > > >> On 29 May

Re: [perl #131364] [RESOLVED] concurrent quicksort from Damien gives different crashes each time

2017-06-01 Thread Elizabeth Mattijsen via RT
Could you please retry on 2017.05? I cannot reproduce the problem, even after 1000 runs. > On 30 May 2017, at 17:25, Sverre Eldøy wrote: > > Hi! Sorry for the late reply. I just tried it on 2017.04 ... and the problem > is still there.. So please reopen > > >> On 29 May

Re: list named argument in MAIN

2017-06-01 Thread Marcel Timmerman
On 06/01/2017 03:03 PM, H.Merijn Brand wrote: On Thu, 1 Jun 2017 14:11:47 +0200, Timo Paulssen wrote: It seems like this only works if you supply --dirs= multiple times perl6 -e 'sub MAIN (List :$dirs=[]) { .say for @$dirs }' --dirs=d1 --dirs=d2 --dirs=d3 d1

Re: Creating an array of a single hash

2017-06-01 Thread Timo Paulssen
Yeah, you can use the prefix $ to itemize things, like so: timo@schmand ~> perl6 -e 'my @y = ${ name => "Foo" }; say @y.gist; say @y.^name; say @y[0].^name' [{name => Foo}] Array Hash HTH - Timo

Re: Creating an array of a single hash

2017-06-01 Thread Gabor Szabo
On Thu, Jun 1, 2017 at 5:44 PM, Timo Paulssen wrote: > Yeah, you can use the prefix $ to itemize things, like so: > > timo@schmand ~> perl6 -e 'my @y = ${ name => "Foo" }; say @y.gist; > say @y.^name; say @y[0].^name' > [{name => Foo}] > Array > Hash > > HTH >