[perl6/specs] : be more accurate about anon in the table

2012-01-11 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: be88f7f8fde4d7e53d411eff920a4d2260631a27 https://github.com/perl6/specs/commit/be88f7f8fde4d7e53d411eff920a4d2260631a27 Author: Larry Wall Date: 2012-01-11 (Wed, 11 Jan 2012) Changed paths: M S02-bit

[perl6/specs] : allow anon name to be used for recursion

2012-01-11 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 23e517fc910c086ee6eff0cd03b0fd2b3b6140a2 https://github.com/perl6/specs/commit/23e517fc910c086ee6eff0cd03b0fd2b3b6140a2 Author: Larry Wall Date: 2012-01-11 (Wed, 11 Jan 2012) Changed paths: M S02-bit

[perl #107992] [BUG] -n command switch is broken

2012-01-11 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #107992] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=107992 > Note : I patched rakudo nom with https://gist.github.com/1596551 to get the b

[perl6/specs] : [S32/Containers] fixed typo in negative .rotate

2012-01-11 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 1945a6bf4ca7e8967a06d2181070a74081a2c9c2 https://github.com/perl6/specs/commit/1945a6bf4ca7e8967a06d2181070a74081a2c9c2 Author: Bruce Gray Date: 2012-01-11 (Wed, 11 Jan 2012) Changed paths: M S32-set

[perl #77164] [BUG] Cannot always match signature when default value is a sub

2012-01-11 Thread Will Coleda via RT
On Wed Aug 11 08:58:45 2010, patrickas wrote: > rakudo: sub foo ( $f = rand ) { say $f; }; say > Capture.new() ~~ &foo.signature; #does not match > rakudo c1e19a: OUTPUT«0␤» > > rakudo: sub foo ( $f = 0.461541885367723 ) { say $f; }; > say Capture.new() ~~ &foo.signature; #matches > rakudo

[perl #69010] [BUG] &break outside of topicalizer block should be a compile-time error in Rakudo

2012-01-11 Thread Will Coleda via RT
On Sat Aug 07 13:30:25 2010, masak wrote: > On Tue Aug 03 09:18:48 2010, bbkr wrote: > > in * release > > > > [18:16] rakudo: break > > [18:16] rakudo efe72c: OUTPUT«Could not find sub &break␤ > in > > main program body at line 22:/tmp/3991IK9D0k␤» > > > > [18:18] std: break > > [18:18] std 318

[perl #59118] Class attributes without accessors don't work in Rakudo

2012-01-11 Thread Will Coleda via RT
On Tue Aug 12 14:17:20 2008, masak wrote: > r30188: > $ ./perl6 -e 'class A { my $.x = 7; say $.x }' # segfaults > Lexical 'self' not found > [...] > Segmentation fault > > Not sure if the error message from Pugs is right either. Should it be > looking for 'self' at this stage? What should the pro

[perl #74654] [BUG] '&$b()' is parsed wrongly by Rakudo

2012-01-11 Thread Will Coleda via RT
On Tue Aug 17 21:54:31 2010, coke wrote: > On Sun Apr 25 07:22:56 2010, masak wrote: > > masak: alpha is diferent from rakudo > > masak: which one is right? > > alpha: my $b = &time; say &$b(); > > alpha 30e0ed: OUTPUT«1272203938.46735␤» > > rakudo: my $b = &time; say &$b(); > > rakudo e393c7

[perl #76330] MONKEY_TYPING cannot add method named invoke

2012-01-11 Thread Will Coleda via RT
On Fri Jul 02 05:34:39 2010, jonat...@jnthn.net wrote: > Paweł Pabian (via RT) wrote: > > # New Ticket Created by Paweł Pabian > > # Please include the string: [perl #76330] > > # in the subject line of all future correspondence about this issue. > > # http://rt.perl.org/rt3/Ticket/Display.html?i

[perl #75852] [BUG] Can't declare a class A after importing a file which defines a type A::B in Rakudo

2012-01-11 Thread Will Coleda via RT
On Fri Jun 18 07:36:28 2010, masak wrote: > $ cat A/B.pm > class A::B {} > > $ perl6 -e 'use A::B; class A {}' > ===SORRY!=== > Illegal redeclaration of symbol 'A' > > $ perl6 -e 'class A::B {}; class A {}; say "alive"' > alive > > In the failing program, if 'class A::B {}' is replaced by 'role

[perl #78142] [BUG] Statement level bare blocks for if statements

2012-01-11 Thread Will Coleda via RT
On Wed Sep 29 21:14:01 2010, ash_gti wrote: > The S04 section on Statement Level Bare Blocks says: > > # Not an error: Equivalent to "if foo() -> $x { say $x }" > { say $^x } if foo(); > > > $ perl6 > > > { say $^x } if 1; > _block141 > > > if 1 -> $x { say $x } > 1 This now gives no outp

[perl #77394] Rakudo ignores sigil-implied types for binding

2012-01-11 Thread Will Coleda via RT
On Mon Aug 23 13:23:18 2010, moritz wrote: > fine: > > 22:21 < moritz_> rakudo: my Str $a := 1 > 22:21 <+p6eval> rakudo 689bb7: OUTPUT«You cannot bind a variable of type > Int() to a variable of type Str().␤ in 'infix:<:=>' at line > 685:CORE.setting␤ in main program body at line > 22:/tmp

[perl #76932] [BUG] Test.pm; lives_ok() not working with warn()

2012-01-11 Thread Will Coleda via RT
On Mon Aug 02 12:54:20 2010, moritz wrote: > It's actually a very generic problem with warn() and try {} interacting > badly: > > 21:53 < moritz_> rakudo: try { warn "foo"; say "alive" } > 21:53 <+p6eval> rakudo 1a5d4a: ( no output ) Both this 10:26 < [Coke]> rakudo: try { warn "foo"; say "ali

[perl #77460] [BUG] Calling an anonymous sub in a for loop makes the for loop not run in Rakudo

2012-01-11 Thread Will Coleda via RT
On Thu Aug 26 16:32:05 2010, masak wrote: > rakudo: my @a = 1; for 1..10 { my $last = @a[*-1]; say $last; > push @a, (sub ($s) { $s + 1 })($last) }; say @a.perl > rakudo df38ac: OUTPUT«[1]␤» > could somebody confirm to me that this is not expected behaviour? > I expect [1, 2, 3, 4, 5, 6, 7, 8,

[perl #77010] [BUG] Can't use the >> hyperoperator with my-scoped user-defined operators in Rakudo

2012-01-11 Thread Will Coleda via RT
On Thu Aug 05 10:33:35 2010, masak wrote: > rakudo: sub postfix:($n) { [*] 1..$n }; say (1, 2, 3)>>! > rakudo 19931f: OUTPUT«===SORRY!===␤Could not find sub > &postfix:␤» > * masak submits rakudobug > rakudo: sub infix:<+++>($a, $b) { ($a + $b) div 2 }; say 10 > >>+++<< 14 > rakudo 19931f: OUTP

[perl #77040] [BUG] Rakudo REPL terminates when the result of an evaluation is a Failure

2012-01-11 Thread Will Coleda via RT
On Fri Aug 06 04:18:42 2010, lithos wrote: > Hi! > > The Rakudo REPL terminates when the result of the given expression is > a Failure > object, e.g. from an exception that is raised within an 'eval'. > > I would expect the REPL to print an error message and continue. > > Lithos > > This is Rak

[perl #107960] [BUG] LTA error message about undeclared &-sigil variables not being predeclared in Rakudo

2012-01-11 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #107960] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=107960 > nom: say &foo; sub foo {} nom 38165a: OUTPUT«sub foo() { ... }␤» nom: say &foo

[perl #76444] [BUG] 'say (my $a) = 1, 2, 3' parses as '(say my $a) = 1, 2, 3' in Rakudo (but as 'say ((my $a) = 1, 2, 3)' in STD.pm6)

2012-01-11 Thread Carl Mäsak via RT
On Tue Jan 10 17:17:55 2012, coke wrote: > On Sat Jul 10 07:02:24 2010, masak wrote: > > rakudo: say (my $a) = 1,2,3; say $a # discovered by > TimToady++ > > rakudo 692aa1: OUTPUT«Any()␤» > > did it ever get reported? > > rakudo: say ((my $a) = 1,2,3); > > rakudo 692aa1: OUTPUT«1 2 3␤» > > ra

[perl #73792] [BUG] 'state' vars in role bodies not supported in Rakudo

2012-01-11 Thread Carl Mäsak via RT
On Tue Jan 10 17:01:28 2012, coke wrote: > On Wed Mar 24 08:36:38 2010, masak wrote: > > what would a state variable in a class definition be like? > > ash_: like this? class A { state $foo } > > yeah > > > > ash_: it wouldn't really make practical sense, because the > > class block is only run