[perl #76606] [BUG] Autovivifcation in 'use' directives

2011-10-21 Thread Will Coleda via RT
On Tue Jul 20 11:36:38 2010, ash_gti wrote: > Autovivifcation works in a single file, but if you try to do it across files > and use 'use Name' to import an object it doesn't work: > > john@Strudel /tmp $ cat t.pm > class foo::a { > }; > > class foo { > }; > > say 'done' > > john@Strudel /tmp $

[perl #76486] [Bug] Multiple dispatch mechanism apparently does not descend into inner signatures

2011-10-21 Thread Will Coleda via RT
On Wed Jul 14 15:42:09 2010, cognominal wrote: > Sorry. My example was wrong. Here another one. C executes as > intended but > C<@t> does not. I find that unintuitive. > > > cat mmd5.pm6 > multi sub a(@a) { say 1 ~ @a.perl } > multi sub a([]) { say 2 ~ [].perl } > my @t=(1,2); > a([]); > a(@t) >

[perl #76046] [BUG] Can't use &[+] in infix:<...> series in Rakudo

2011-10-21 Thread Will Coleda via RT
On Thu Jun 24 05:18:07 2010, masak wrote: > rakudo: say ~(1, 1, &[+] ... *)[^10] > rakudo 11cbd4: OUTPUT«get_attr_str() not implemented in class > 'Perl6MultiSub'␤ in 'infix:<...>' at line 1 [...] > * masak submits rakuodbug > rakudo: say ~(1, 1, &[+] ... 50) > rakudo 11cbd4: OUTPUT«get_attr_s

[perl #75834] [BUG] keyword cannot be used as attribute name in object initializer

2011-10-21 Thread Will Coleda via RT
On Thu Jun 17 12:45:24 2010, rakudo...@autoexec.demon.nl wrote: > This (reduced from HTTP::Daemon) used to work in alpha: > > class HTTP::Request { > has Str $.method is rw; > } > ... > return HTTP::Request.new( method => 'GET' ); > > but in master the word 'met

[perl #77906] [BUG] Can't modify %*ENV in Rakudo

2011-10-21 Thread Will Coleda via RT
On Fri Sep 17 04:07:17 2010, masak wrote: > How do you modify a environment variable in Perl6. Tried > %*ENV = 'Test', but that does not work > it should. > rakudo: %*ENV = 'Test'; say %*ENV > rakudo 2c8bb8: OUTPUT«Cannot modify readonly value␤ in > '&infix:<=>' [...] > I think that one's in

[perl #76518] [BUG] REPL weirdness with exported subs

2011-10-21 Thread Will Coleda via RT
On Wed Jul 14 21:43:09 2010, supernovus wrote: > Say you have a module file called Greetings.pm6 that contains: > > use v6; > module Greetings { > sub hello($name='World') { > say "Hello $name"; > } > } > > If you were to do: perl6 -e 'use Greetings; hello("moon");' > It would appropriate

[perl #76888] REPL crash - Method 'key' not found for invocant of class 'String' and Contextual $*PATH not found

2011-10-21 Thread Will Coleda via RT
On Sun Aug 01 03:08:48 2010, masak wrote: > rakudo: say %*ENV.perl > rakudo 9b6189: OUTPUT�Method 'key' not found for invocant of > class 'String' [...] > that looks like Parrot things leaking through. > * masak submits rakudobug All of these work now except for "$*PATH", which doesn't crash, b

[perl #74426] [BUG] Can't make use of nested class declarations in Rakudo

2011-10-21 Thread Will Coleda via RT
On Sun May 30 08:50:55 2010, masak wrote: > rakudo: package A { package C::B { our sub c { say "OH HAI" > } } }; A::C::B::c > rakudo 1727ca: OUTPUT«Can not find sub A::C::B::c [...] > that one is wrong (afaik) > cognominal: :) > that should've printed "OH HAI" > * masak submits rakudobug > ra

[perl #77646] [BUG] executing the same eval twice without an enclosing block

2011-10-21 Thread Will Coleda via RT
On Thu Sep 02 03:17:54 2010, smash wrote: > IRC log: > > 11:07 < smash> rakudo: eval "say 1" for 1..4; > 11:07 <+p6eval> rakudo 27d54d: OUTPUT«1␤Null PMC in copy␤ in 'eval' > at line 1117:CORE.setting␤ in main program body at line > 22:/tmp/kyKDs6lmfi␤» > 11:08 < smash> !? > 11:11 < moritz_> rak

[perl #72442] {redo} prints a newline to STDERR

2011-10-21 Thread Will Coleda via RT
On Wed Aug 11 19:12:51 2010, coke wrote: > On Tue Feb 02 00:32:30 2010, moritz wrote: > > $ perl6 -e '{redo}'|wc -l > > > > 0 > > $ > > > > Rakudo prints a newline to STDERR, nothing else. That's a bit > > less-than-awesome, I'd expect a warning like "redo without a block at > > ..." or so. > >

Re: [perl #74850] [BUG] Strange error when doing '.= new' on an attribute in Rakudo

2011-10-21 Thread Will Coleda
On Fri, Oct 21, 2011 at 3:52 PM, Will Coleda via RT wrote: > On Sun May 02 08:33:11 2010, masak wrote: >> rakudo: class A {}; class B { has A $.foo .= new } >> rakudo c4857a: OUTPUT«too few positional arguments: 1 passed, >> 2 (or more) expected [...] >> s1n: it will take 1 month to do that ...

[perl #74850] [BUG] Strange error when doing '.= new' on an attribute in Rakudo

2011-10-21 Thread Will Coleda via RT
On Sun May 02 08:33:11 2010, masak wrote: > rakudo: class A {}; class B { has A $.foo .= new } > rakudo c4857a: OUTPUT«too few positional arguments: 1 passed, > 2 (or more) expected [...] > s1n: it will take 1 month to do that ... > * masak submits rakudobug > alpha: class A {}; class B { has A

[perl #73680] [BUG] Typed undefined attributes/parameters aren't typed with the right undefined type object in Rakudo

2011-10-21 Thread Will Coleda via RT
On Sat Mar 20 07:49:13 2010, masak wrote: > rakudo: grammar CSV { has Str $.sep }; say CSV.new(sep => ",").sep > rakudo 0bb373: OUTPUT«Any()␤» > hmm, why "Any()" ? > bbkr: it's the new 'undef' > masak: Yes, but shoulda been Str. > o.O > erm, shoulda been "," actually > masak: Typed attribu

[perl #76960] Rakudo does not allows lexical overrides of attributes

2011-10-21 Thread Will Coleda via RT
On Tue Aug 03 08:59:05 2010, moritz wrote: > 17:54 < moritz_> rakudo: class A { has $b; method new { my $b = 3; say > $b } }; A.new() > 17:54 <+p6eval> rakudo efe72c: OUTPUT«Type objects are abstract and have > no attributes, but you tried to access $!b␤ in 'A::new' at line > 22:/tmp/ACdVhQjE_4␤

[perl #101912] Buf code Segmentation fault

2011-10-21 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #101912] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=101912 > [19:58] everyone: can you please confirm segfault in this code on your machines

Re: [perl #101858] [PATCH] [BUG] List.unshift won't unshift false values in nom

2011-10-21 Thread Geoffrey Broadwell
See attached short patch to src/core/List.pm to fix #101858. -'f >From d18c6af3e8c8bd2e1dc43d132fcc2cb39fc41e6c Mon Sep 17 00:00:00 2001 From: Geoffrey Broadwell Date: Thu, 20 Oct 2011 21:28:36 -0700 Subject: [PATCH] List.unshift(): loop while @elems is non-empty, not while first element is tru

Announce: Rakudo Perl 6 compiler development release #45 ("Houston")

2011-10-21 Thread Jonathan Scott Duff
On behalf of the Rakudo development team, I'm happy to announce the October 2011 release of Rakudo Perl #45 "Houston". Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine (see ). The tarball for this release is available from

[perl #101858] [BUG] List.unshift won't unshift false values in nom

2011-10-21 Thread via RT
# New Ticket Created by Geoffrey Broadwell # Please include the string: [perl #101858] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=101858 > In short: $ ./perl6 -e 'my @a = < a b c >; @a.unshift(1); @a.unshift(0

[perl #74060] [BUG] Assigning the result of a statement-modifying for to an array variable causes it to contain an ArrayIterator in Rakudo

2011-10-21 Thread Will Coleda via RT
On Sun Apr 04 10:33:15 2010, masak wrote: > rakudo: my @s = ($_ * 2 if $_ ** 2 > 3 for 0 .. 99); say @s.perl > rakudo 02cf9c: OUTPUT«Method 'perl' not found for invocant of > class 'ArrayIterator'␤[...] > ArrayIterator ?! > * masak submits rakudobug > > This feels wrong. Surely it should be an

[perl #68558] [BUG] nextwith and callwith do not work with the .new method in Rakudo

2011-10-21 Thread Will Coleda via RT
09:42 < masak> [Coke]: looks like the desired behavior. Closable with tests. -- Will "Coke" Coleda

[perl #68558] [BUG] nextwith and callwith do not work with the .new method in Rakudo

2011-10-21 Thread Will Coleda via RT
On Sat Aug 15 14:04:44 2009, masak wrote: > rakudo: class A { has $.foo; method new($foo) { > nextwith(:$foo) } }; say A.new("OH HAI").foo > rakudo 0d4fe0: OUTPUT«too many named arguments - 'foo' not > expected␤in method A::new > jnthn: should that have worked? > Hmm > rakudo: class A { has $.

Re: [perl #60780] Trouble when iteration variables don't add up

2011-10-21 Thread Will Coleda
On Fri, Oct 21, 2011 at 9:14 AM, Will Coleda via RT wrote: > On Mon Sep 19 20:57:19 2011, coke wrote: >> On Mon Apr 05 14:21:29 2010, coke wrote: >> > On Sun Jan 11 00:21:58 2009, pmichaud wrote: >> > > On Mon Nov 24 09:12:36 2008, masak wrote: >> > > > rakudo: for 1..5 -> $a, $b { say $a, $b } >

[perl #60780] Trouble when iteration variables don't add up

2011-10-21 Thread Will Coleda via RT
On Mon Sep 19 20:57:19 2011, coke wrote: > On Mon Apr 05 14:21:29 2010, coke wrote: > > On Sun Jan 11 00:21:58 2009, pmichaud wrote: > > > On Mon Nov 24 09:12:36 2008, masak wrote: > > > > rakudo: for 1..5 -> $a, $b { say $a, $b } > > > > rakudo 33137: OUTPUT[12␤34␤StopIteration␤current > instr.:

[perl #58922] [SPEC] .perl for self-referent structures

2011-10-21 Thread Will Coleda via RT
On Fri Oct 21 05:51:00 2011, coke wrote: > Since this ticket is about a clarification to the specification, it's been > migrated to the spec's issue queue: > > https://github.com/perl6/roast/issues/7 Whoops, I meant: https://github.com/perl6/specs/issues/6 -- Will "Coke" Coleda

[perl #58290] [spec] define meaning of in S05

2011-10-21 Thread Will Coleda via RT
On Fri Oct 21 05:54:53 2011, coke wrote: > On Tue Jun 30 19:55:26 2009, pmichaud wrote: > > I've changed this ticket to indicate that it's waiting on spec > > clarification as to the exact meaning of in regexes. > > > > Pm > > Since this ticket is about a clarification to the specification, it's

[perl #58290] [spec] define meaning of in S05

2011-10-21 Thread Will Coleda via RT
On Tue Jun 30 19:55:26 2009, pmichaud wrote: > I've changed this ticket to indicate that it's waiting on spec > clarification as to the exact meaning of in regexes. > > Pm Since this ticket is about a clarification to the specification, it's been migrated to the spec's issue queue: https://gith

[perl #58922] [SPEC] .perl for self-referent structures

2011-10-21 Thread Will Coleda via RT
Since this ticket is about a clarification to the specification, it's been migrated to the spec's issue queue: https://github.com/perl6/roast/issues/7 -- Will "Coke" Coleda

[perl #58592] --target=PAST and -e don't mix in Rakudo

2011-10-21 Thread Will Coleda via RT
On Fri Sep 05 03:20:03 2008, masak wrote: > $ ../../parrot perl6.pbc -e 'say "OH HAI"' # works > OH HAI > $ ../../parrot perl6.pbc --target=PAST -e 'say "OH HAI"' # outputs nothing > > ...whereas both these approaches work when the -e program is replaced > by a file with corresponding contents.

[perl #101900] [BUG] Segfault when mixing an enum value into a type object in Rakudo

2011-10-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #101900] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=101900 > nom: enum Foo < a b >; class A { }; say A but Foo::a nom e1a62b: OUTPUT«(signal

[perl #101876] [BUG] List.unshift doesn't unshift values that boolify to false in Rakudo

2011-10-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #101876] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=101876 > nom: my @a = < a b c >; @a.unshift(1); @a.unshift(0); @a.unshift(2); @a.unshift(