[perl #124316] @a[0,1] is not the same as @a[^2]

2015-08-26 Thread Will Coleda via RT
On Thu Apr 16 09:50:05 2015, elizabeth wrote: Slicing handles ranges differently from lists, even if the range is not infinite. my @a; say @a[0,1].perl;# (Any,Any) say @a[^2].perl; # () This becomes even more troublesome when used as a left value: @a[0,1] = 42,43 #

[perl #113754] [BUG] optimizer has difficulty with long expressions

2015-08-26 Thread Will Coleda via RT
On Tue Jun 19 11:51:14 2012, pmichaud wrote: Refined from a case given by harmil++ on #perl6, the optimizer seems to have problems with long expressions. pmichaud@kiwi:~/p6/rakudo$ cat z #!/bin/bash for size in 1 10 100 500 1000 1; do code=$(./perl6 -e say (1..$size).join('+'))

[perl #125681] -001-12-31 is not a good way to represent a date

2015-08-26 Thread Will Coleda via RT
On Fri Jul 24 13:01:20 2015, alex.jakime...@gmail.com wrote: Code: say Date.new(-01-01).truncated-to('week'); say Date.new(-01-01).pred(); say Date.new(-01-01) - 1; Result: -001-12-27 -001-12-31 -028-08-15 It seems like ISO 8601 allows negative dates, but it should be

[perl #123830] List repetition (infix:xx) doesn't work on lazy lists

2015-08-26 Thread Will Coleda via RT
On Sat Feb 14 02:56:01 2015, moritz wrote: $ perl6-m -e 'say abc.ords xx 2' $ should be 97 98 99 97 98 99 Tested in S03-operators/repeat.t Fixed in glr branch. -- Will Coke Coleda

[perl #122802] non-invokable object is non-invokable

2015-08-26 Thread Will Coleda via RT
On Thu Sep 18 09:01:12 2014, pawel.pab...@implix.com wrote: From following code: $ perl6 -e 'my $job1 = start { say job 1}; my $job2 = start { say job 2}; await Promise.allof($job1, $job2)' I get randomly one of following errors: ===SORRY!=== non-invokable object is non-invokable

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Brandon Allbery
On Wed, Aug 26, 2015 at 1:58 PM, Elizabeth Mattijsen l...@dijkmat.nl wrote: It used to be, but that was not according to spec. FROGGS++ implemented the lax mode, which is enabled by default in one-liners. Perhaps TimToady wants to invoke rule #2 on this. Personally, I use an alias that has

[perl #76930] [star] [build] space in prefix path

2015-08-26 Thread Will Coleda via RT
On Sat Oct 04 09:03:20 2014, barto...@gmx.de wrote: This is still an issue. Fixing this will require a deep review of the build system (cmp. the following short discussion on #perl: http://irclog.perlgeek.de/perl6/2014-10-02#i_9447222). Current status - This is busted in a MoarVM build, let

[perl #125494] compiler fails silently at this file

2015-08-26 Thread Will Coleda via RT
On Sat Jun 27 08:16:45 2015, equinox wrote: Hi, see https://gist.github.com/jaffa4/11847e6d373f9ddfba34 Execute it perl6-m.bat Long.pm6 You will get here D:\m\p6\getopt_LONG\lib\Getopt\Long.pm6: 1021 here D:\m\p6\getopt_LONG\lib\Getopt\Long.pm6: 1026 here

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Elizabeth Mattijsen
On 26 Aug 2015, at 12:18, H.Merijn Brand h.m.br...@xs4all.nl wrote: On Wed, 26 Aug 2015 10:26:23 +0200, Moritz Lenz mor...@faui2k3.org wrote: I could continue with other Perl 5 deficiencies (no strict by default, Using strict *STILL* is not enabled by default for perl6 one-liners

[perl #115744] -- makes - option when used with sub MAIN

2015-08-26 Thread Will Coleda via RT
On Thu Nov 15 08:24:25 2012, glitc...@myopera.com wrote: glitchmr@feather ~ perl6 -e 'sub MAIN { %_.perl.say }' -- (- = Bool::True).hash It should instead stop option processing. Because of that, it's currently impossible to make first option that starts with - symbol. Fixed in

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread H.Merijn Brand
On Wed, 26 Aug 2015 10:26:23 +0200, Moritz Lenz mor...@faui2k3.org wrote: I could continue with other Perl 5 deficiencies (no strict by default, Using strict *STILL* is not enabled by default for perl6 one-liners either: $ perl6 -e'my Int $this = 1; $thıs++; say $this;' 1 $ perl6 -Mstrict

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Tom Browder
On Wed, Aug 26, 2015 at 3:26 AM, Moritz Lenz mor...@faui2k3.org wrote: Hi, On 11.08.2015 14:12, Tom Browder wrote: I have seen several lists of new Perl 6 features (versus Perl 5) but they all seem to be lists that intermix features with varying degrees of value to ordinary Perl 5 users.

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Moritz Lenz
Hi, On 11.08.2015 14:12, Tom Browder wrote: I have seen several lists of new Perl 6 features (versus Perl 5) but they all seem to be lists that intermix features with varying degrees of value to ordinary Perl 5 users. If one wants to sell long-time Perl 5 users (already using the latest Perl

Formatting in Pod declarator blocks

2015-08-26 Thread Philip Hazelden
Synopsis 26 http://design.perl6.org/S26.html#Declarator_blocks says of declarator blocks: A declarator can have multiple leading and/or trailing Pod comments, in which case they are concatenated with an intermediate newline when their object's .WHY return value is stringified But the current

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-26 Thread Marc Chantreux
On Wed, Aug 26, 2015 at 12:18:46PM +0200, H.Merijn Brand wrote: $ perl6 -e'my Int $this = 1; $thıs++; say $this;' 1 $ perl6 -Mstrict -e'my Int $this = 1; $thıs++; say $this;' ===SORRY!=== Error while compiling -e Variable '$thıs' is not declared. Did you mean '$this'? at -e:1 -- my Int