Re: r29976 - docs/Perl6/Spec

2010-03-07 Thread Brandon S. Allbery KF8NH
On Mar 7, 2010, at 09:42 , pugs-comm...@feather.perl6.nl wrote: +has $!age is ref; # BUILD will automatically use ref binding, not copy Perl6 isn't done until it has reinvented Algol 68? -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com system administrator [o

Re: The silliness of max()

2010-03-07 Thread Darren Duncan
Jon Lang wrote: Moritz Lenz wrote: Please take a look at http://rt.perl.org/rt3/Ticket/Display.html?id=73356: rakudo: say max(1..5) rakudo c05478: OUTPUT«-Inf␤» * masak submits rakudobug for max(1..5) The weird thing is that it is right, according to the current spec. It says our multi max

[perl #73356] [BUG] max(1..5) is -Inf in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73356] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73356 > rakudo: say max(1..5) rakudo c05478: OUTPUT«-Inf␤» * masak submits rakudobug for max(1

[perl #73396] [BUG] Null PMC access when calling .WHAT on the thing that Perl6::Compiler.compile returns in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73396] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73396 > rakudo: say Perl6::Compiler.compile('say 42').WHAT rakudo e9c185: OUTPUT«Null PMC acce

[perl #73392] [PATCH] Fix parsing of overflowing numbers with exponent part

2010-03-07 Thread via RT
# New Ticket Created by Martin Kjeldsen # Please include the string: [perl #73392] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73392 > It's done by grabing one part of the frac at a time instead of just trying to deal w

[perl #73400] [BUG] Cannot loop over Capture object in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73400] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73400 > rakudo: my $i = 0; $i++ for \[1,2,3]; say $i; rakudo d32a0c: OUTPUT«Method 'iterator'

[perl #73384] [BUG] Null PMC access when using &&= or ||= in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73384] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73384 > rakudo: my $a = 10; $a &&= 11; say $a rakudo 54be6d: OUTPUT«Null PMC access in invoke(

[perl #73346] [BUG] Null PMC access when calling .list on an uninitialized list in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73346] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73346 > rakudo: my @a; say @a.list rakudo 974d9a: OUTPUT«Null PMC access in elements()␤current

Re: The silliness of max()

2010-03-07 Thread Jon Lang
Moritz Lenz wrote: > Please take a look at http://rt.perl.org/rt3/Ticket/Display.html?id=73356: > > rakudo: say max(1..5) > rakudo c05478: OUTPUT«-Inf␤» > * masak submits rakudobug for max(1..5) > > The weird thing is that it is right, according to the current spec. It says > >  our multi max( Or

[perl #73354] Junction autothreading over inf ix:«<» (less-than) loops and then dies

2010-03-07 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #73354] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73354 > This be Rakudo 37e574683ed0c55ca1155bf78a9ace7c2e7a3c6a $ perl6 -e '(1 | 2 ) < 3' curren

[perl #73398] [BUG] Array objects in item context in for loops flatten in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73398] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73398 > rakudo: my $i = 0; $i++ for [1,2,3]; say $i; rakudo d32a0c: OUTPUT«3␤» alpha: my $i =

[perl #73328] [BUG] Rakudo is to permissive with semicolon-form package declarations inside package blocks

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73328] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73328 > rakudo: package foo { our package bar; say bar; } rakudo b348b3: OUTPUT«bar␤» std: pa

[perl #73390] [BUG] Any type of package should be disallowed inside a role in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73390] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73390 > rakudo: role A { class B {} } * masak submits rakudobug jnthn++ expected the above to

[perl #73388] [PATCH] say 3.14159265358979323846264338327950288419716939937510e0; fails

2010-03-07 Thread via RT
# New Ticket Created by Martin Kjeldsen # Please include the string: [perl #73388] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73388 > This transaction appears to have no content 0001-Use-numbers-in-number-context-so-th

[perl #73386] [BUG] Rakudo allows infix: even though infix:<+> is not iffy enough by STD.pm

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73386] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73386 > rakudo: say 3 !+ 4 rakudo 125e87: OUTPUT«0␤» rakudo: say 3 !+ -3 rakudo 125e87: OUTP

[perl #72960] [BUG] Null PMC access when doing [].WHAT.say in Rakudo

2010-03-07 Thread jn...@jnthn.net via RT
On Fri Feb 19 15:51:56 2010, masak wrote: > rakudo: [].WHAT.say > rakudo 3b869c: OUTPUT«Null PMC access in elements() [...] > Eww. That one. :-/ > * masak submits rakudobug > I thought I'd fixed that :-| > 'pparently not Fixed now. > [].WHAT.say Array() Needs tests. Thanks, Jonathan

Re: [perl #73350] [PATCH] Add p5chomp and add p5chomp and p5chop to tests

2010-03-07 Thread Geoffrey Broadwell
On Sat, 2010-03-06 at 07:52 -0800, Martin Kjeldsen wrote: > +if $str ~~ /\x0a$/ { > +$str = $str.substr(0, $str.chars - 1); Unless newlines are being canonicalized elsewhere, this seems *nix-specific. (Sorry I haven't researched further, this just caught my eye in pass

The silliness of max()

2010-03-07 Thread Moritz Lenz
Please take a look at http://rt.perl.org/rt3/Ticket/Display.html?id=73356: rakudo: say max(1..5) rakudo c05478: OUTPUT«-Inf␤» * masak submits rakudobug for max(1..5) The weird thing is that it is right, according to the current spec. It says our multi max( Ordering @by, *...@values ) our mu

[perl #73368] [BUG] Null PMC access when referring to a lexical defined in the RHS of an attribute assignment in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73368] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73368 > rakudo: class A { has $.b = my $foo = 42; method x { say $foo } } A.new.x [23:17] raku

[perl #73352] 'so $x = 1' causes weird errors

2010-03-07 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #73352] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73352 > Rakudo 2d9808d19ba45c09f61a4c6fc4b4b7159ea760cc: $ cat foo.pl my $x; so $x = 1; $ ./per

[perl #73350] [PATCH] Add p5chomp and add p5chomp and p5chop to tests

2010-03-07 Thread via RT
# New Ticket Created by Martin Kjeldsen # Please include the string: [perl #73350] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73350 > A patch which adds p5chomp and adds p5chomp and p5chop to tests 0001-Add-p5chomp-co

[perl #73344] [BUG] the where clause of parameters is attached to the wrong outer scope on our subs in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73344] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73344 > when I write 'our sub foo', the scope of the parameters in the signature of foo is a gl

[perl #73326] [BUG] Infinite recursion in stringification of a capture in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73326] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73326 > rakudo: say ~\(1;2;3) # masakbot rakudo b348b3: OUTPUT«maximum recursion depth exceede

[perl #73322] [BUG] prefix:<~> stringifies the length of a list, not its contents, in Rakudo

2010-03-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73322] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73322 > btw, masak: rakudo: say ~(1, 2, 3) rakudo d4be43: OUTPUT«3␤» already reported? o.O

r29979 - docs/Perl6/Spec

2010-03-07 Thread pugs-commits
Author: masak Date: 2010-03-07 16:40:03 +0100 (Sun, 07 Mar 2010) New Revision: 29979 Modified: docs/Perl6/Spec/S12-objects.pod Log: [S12] s/values/symbols/ Modified: docs/Perl6/Spec/S12-objects.pod === --- docs/Perl6/Spec/S12-obje

Re: [perl #73244] [PATCH] implement grammars

2010-03-07 Thread Moritz Lenz
Hi Bruce, Bruce Keeler (via RT) wrote: > The attached patch is also available in the 'grammar' branch of my > github fork (bkeeler/rakudo). I'll keep that branch up to date to make > sure it applies cleanly. Thank you very much for your great work; I've merged it from the github branch (as com

r29976 - docs/Perl6/Spec

2010-03-07 Thread pugs-commits
Author: lwall Date: 2010-03-07 15:42:59 +0100 (Sun, 07 Mar 2010) New Revision: 29976 Modified: docs/Perl6/Spec/S06-routines.pod docs/Perl6/Spec/S12-objects.pod Log: [S06,S12] make attributive parameters default to 'is copy' binding make easy way for an attribute to override this with 'is ref