An implement of $*ARGFILES for Rakudo

2010-06-28 Thread Hongwen Qiu
This is my trying to implement $*ARGFILES for Rakudo for this week's contribution to Perl 6. class IO::ArgFiles { has $!filehandle; has $!filename; has @!filenames; method new(@filenames) { self.bless(*, filenames => @filenames || '-'); } method get() { ret

[perl #72848] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S14-roles/basic.t commit d597d7e732f5f3117590d5ab1721d876ca2aa413 Author: bbkr Date: Mon Jun 28 23:42:45 2010 + [t/spec] tests for RT #72848 "0 but True" causes a no-applicable-candidates err

[perl #72870] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S32-num/rat.t commit f860b4261e301e06c21891cb8514f34a2206aaae Author: bbkr Date: Mon Jun 28 22:53:11 2010 + [t/spec] tests for RT #72870 Cant take .WHAT of sufficiently decimal-endowed Rat in

[perl #72856] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S14-roles/composition.t commit 4ed0890c3ab73914cd23c087304be9ac37e09268 Author: bbkr Date: Mon Jun 28 22:33:37 2010 + [t/spec] tests for RT #72856 Null PMC access when two methods from differ

[perl #76226] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/range.t commit 0b4efc616725ff1f53c2747cafa460cd83a4edec Author: moritz Date: Mon Jun 28 20:59:03 2010 + [t/spec] test for RT #76226, all-whitespace range git-svn-id: htt

[perl #76116] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/introspection.t commit 623767c555b872abb1f56c29af06f62b01b24bd6 Author: moritz Date: Mon Jun 28 20:59:33 2010 + [t/spec] tests for RT #76116, parcel and capture binding in signat

[perl #76198] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S06-other/anon-hashes-vs-blocks.t commit 2b061254b408b68e101c33c41d84c9b10a40d309 Author: moritz Date: Mon Jun 28 20:59:09 2010 + [t/spec] test for RT #76198, {;} should be a Block gi

r31490 -[S06] \| and | prefixes of parameters should be separately introspectable

2010-06-28 Thread pugs-commits
Author: moritz Date: 2010-06-28 22:59:28 +0200 (Mon, 28 Jun 2010) New Revision: 31490 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] \| and | prefixes of parameters should be separately introspectable Modified: docs/Perl6/Spec/S06-routines.pod ===

[perl #75956] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S28-named-variables/inc.t commit 1f6b32e3b9ea370b8f10de64ce8f386f50aa2198 Author: moritz Date: Mon Jun 28 20:58:52 2010 + [t/spec] tests for RT #75956, @*INC should be writable git-sv

[perl #76174] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S04-statements/if.t commit 7dae39e04f140333b2a794ec70a4f72d4cced480 Author: moritz Date: Mon Jun 28 20:58:57 2010 + [t/spec] test for RT #76174, "if" does not break lexical aliasing of $_ in

Re: [perl #76048] [TODO] Implement Str.rindex and &rindex... again... in Rakudo

2010-06-28 Thread Moritz Lenz
re-implemented in what is 44f51229d801b637b3f9d23314f3208979c54c51 locally, but commit hash might change during rebasing. Carl MXXsak (via RT) wrote: > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #76048] > # in the subject line of all future correspondence about th

Re: [perl #76238] Bool.pick always returns false.

2010-06-28 Thread Mark J. Reed
That is terribly confusing. I'm tempted to argue for .pick not being defined on scalar values. Do any of the other non-Enumerated types besides Bool have a finite range? I'd say .pick should return an appropriate random value when applied to any such. On Monday, June 28, 2010, Patrick R. Michau

[perl #72750] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S06-multi/type-based.t commit 0235444cbd338b0823a093899816fb4105fedb4e Author: bbkr Date: Mon Jun 28 17:04:34 2010 + [t/spec/S06-multi/type-based.t] tests for RT #72750 Make Inf and NaN accep

[perl #72600] tests available

2010-06-28 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/slurpy-params.t commit c35c5ea64d78fe461750068f4c03f16727f16c1a Author: bbkr Date: Mon Jun 28 16:37:47 2010 + t[t/spec/S06-signature/slurpy-params.t] tests for RT #72600 if state

[perl #76242] [BUG] Double layers of array when binding an Array in a scalar variable to an 'is copy' array variable in Rakudo

2010-06-28 Thread Patrick R. Michaud via RT
Now fixed in c18d372. Assigning to moritz++ for spectest coverage. Thanks! Pm

[perl #76238] Bool.pick always returns false.

2010-06-28 Thread Patrick R. Michaud via RT
On Mon Jun 28 04:49:23 2010, lemb...@wrkhors.com wrote: > Using the June release: > > $ perl6 --version > This compiler is built with the Parrot Compiler Toolkit, parrot > revision 47640. > > Attempting to print some random numers via Bool.pick > gives no output: For a wide variety of reasons, R

[perl #76198] { ; } shouldn't be a hash

2010-06-28 Thread via RT
# New Ticket Created by 卓明亮 # Please include the string: [perl #76198] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76198 > { ; } shouldn't be a hash, it should be a block >rakudo: {;}.WHAT.say >rakudo 478ba4: OUTPUT«Has

[perl #76174] [Bug] non-modifier form of 'if' within 'for' loop fails, while the modifier form works

2010-06-28 Thread via RT
# New Ticket Created by Prakash Kailasa # Please include the string: [perl #76174] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76174 > >> perl6 -v This compiler is built with the Parrot Compiler Toolkit, parrot revision

[perl #76226] Range operator (" " .. " ") infinite list / out of memory

2010-06-28 Thread via RT
# New Ticket Created by Johnathan Swan # Please include the string: [perl #76226] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76226 > Hi I think I found a bug while playing around with Rakudo. It's the latest downloaded

[perl #76102] [BUG] Null PMC access when calling a multi method on a class doing a role with a variant method whose signature contains a subtype of Hash... in Rakudo

2010-06-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76102] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76102 > rakudo: subset H of Hash; role R { method x(H $project) {} }; class A does R { multi me

[perl #76112] [BUG] wrong line number when calling an attribute method with too many arguments

2010-06-28 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #76112] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76112 > 11:29 * moritz_ has a case of totally wrong line number 11:29 <@jnthn> OH NOES 11:29 <@j

[perl #76120] [TODO] backslash escapes in double-angle quotes

2010-06-28 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #76120] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76120 > 18:21 <@moritz_> rakudo: say :foo<>.perl 18:21 <+p6eval> rakudo 142433: OUTPUT«"foo" => (

[perl #76206] [patch] Reduced && ([&&] and [and]) is not implemented

2010-06-28 Thread via RT
# New Ticket Created by Alex Kapranoff # Please include the string: [perl #76206] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76206 > Since && and "and" are special-cased for short-circuiting automatic reduction does not

[perl #76142] Variables are visible before being declared

2010-06-28 Thread via RT
# New Ticket Created by Radu Stoica # Please include the string: [perl #76142] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76142 > The following code outputs instead of giving error: say $a; my $a = 5; rakudo: sub

[perl #76140] [PATCH] Nested * currying implemented

2010-06-28 Thread via RT
# New Ticket Created by Вячеслав Матюхин # Please include the string: [perl #76140] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76140 > Attached patch implements nested * curring in statements like (* + 5) + (* + 6). You

[perl #76210] complained $d is not predeclared, which is wrong

2010-06-28 Thread via RT
# New Ticket Created by 卓明亮 # Please include the string: [perl #76210] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76210 > JimmyZ>rakudo: use MONKEY_TYPING; my $d = ”; augment class Str { method some_meth_1 {$d = $d

[perl #76110] [BUG] Nested triangular reduce produces empty list

2010-06-28 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #76110] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76110 > 09:33 < tylercurtis> rakudo: say [\+] [\+] 1 xx 5 09:33 < p6eval> rakudo ea8f2b: ( no ou

[perl #76208] [PATCH] WhateverCode type implemented

2010-06-28 Thread via RT
# New Ticket Created by Вячеслав Матюхин # Please include the string: [perl #76208] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76208 > Passes 2 skipped tests from t/spec/S02-builtin_data_types/whatever.t <<< multipart/

[perl #76212] for block sometimes run twice, which is wrong

2010-06-28 Thread via RT
# New Ticket Created by 卓明亮 # Please include the string: [perl #76212] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76212 > JimmyZ>rakudo: use MONKEY_TYPING; my $d = ''; augment class Str { method some_meth_1 {$d = $

[perl #76202] [BUG] > say <1 2 3>.>>.perl # > say <1 2 3>.>>.perl # Confused at line 1, near "say <1 2 3"

2010-06-28 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #76202] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76202 > > say <1 2 3>.>>.perl Confused at line 1, near "say <1 2 3" > say <1 2 3>.>>perl Con

[perl #76172] [BUG] In "has" declaration, typename must be predeclared (or marked as declarative with :: prefix)

2010-06-28 Thread via RT
# New Ticket Created by Adrian White # Please include the string: [perl #76172] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76172 > On Rakudo @ 1727ca53c7052fabe008748b70823bf8460ad656 In trying to write tests for Day 2

[perl #76170] [BUG] Rakudo recognizes infix: as infix:<%%> (but shouldn't)

2010-06-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76170] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76170 > rakudo: say 9 !% 3 rakudo d16a2f: OUTPUT«1␤» * masak submits rakudobug masak: that's

[perl #75966] [BUG] Can't send more than zero (non-invocant) args to a method which accepts a capture parameter in Rakudo

2010-06-28 Thread jn...@jnthn.net via RT
On Tue Jun 22 13:36:43 2010, masak wrote: > rakudo: class A { method foo($x) { say "OH $x" } }; class B > { has $.a handles }; B.new(:a(A)).foo('HAI') > rakudo ad2afb: OUTPUT«Too many positional parameters passed; > got 2 but expected 2 [...] > * masak submits rakudobug Fixed, spectests enabled

[perl #76116] [LHF] [TODO] Signature.perl should know about |-prefixes

2010-06-28 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #76116] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76116 > 17:26 <@moritz_> rakudo: sub f(|$c) { }; say &f.signature.perl 17:26 <+p6eval> rakudo 142

[perl #76104] Cannot augment class Hash

2010-06-28 Thread via RT
# New Ticket Created by Timothy Totten # Please include the string: [perl #76104] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76104 > rakudo: use MONKEY_TYPING; augment class Hash { method hi { say 'hi' } }; my %h; %h.h

[perl #76096] [BUG] Can't have a '-->' after a parameter with a 'where' clause in Rakudo

2010-06-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76096] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76096 > rakudo: sub foo($x where 1 --> Int) {} rakudo 4e6cce: OUTPUT«===SORRY!===␤Missing bloc

Re: [perl #76068] AutoReply: Re: [BUG] $_ as a lhs not handled correctly in a given/when

2010-06-28 Thread Stéphane Payrard
According to S02, this is the right behavior. "Any remaining special variables will be lexically scoped. This includes C<$_> [...]" On Fri, Jun 25, 2010 at 1:34 AM, Stéphane Payrard wrote: > Seeing the generated code for > >  for 1 -> $a { } > > The code concerning $_ seems spurious because ther