[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. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=101876 masak nom: my @a = a b c ; @a.unshift(1); @a.unshift(0); @a.unshift(2);

[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. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=101900 jnthn nom: enum Foo a b ; class A { }; say A but Foo::a p6eval nom e1a62b:

[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. 22:47

[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 #58290] [spec] define meaning of prior 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 prior in regexes. Pm Since this ticket is about a clarification to the specification, it's been migrated to the spec's issue queue:

[perl #58290] [spec] define meaning of prior 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 prior in regexes. Pm Since this ticket is about a clarification to the specification, it's

[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 #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: masak rakudo: for 1..5 - $a, $b { say $a, $b } p6eval rakudo 33137: OUTPUT[12␤34␤StopIteration␤current instr.:

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 perl6-bugs-follo...@perl.org 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: masak rakudo: for 1..5 - $a,

[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: jnthn rakudo: class A { has $.foo; method new($foo) { nextwith(:$foo) } }; say A.new(OH HAI).foo p6eval rakudo 0d4fe0: OUTPUT«too many named arguments - 'foo' not expected␤in method A::new masak jnthn: should that have worked? jnthn Hmm jnthn

[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 #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: lue rakudo: my @s = ($_ * 2 if $_ ** 2 3 for 0 .. 99); say @s.perl p6eval rakudo 02cf9c: OUTPUT«Method 'perl' not found for invocant of class 'ArrayIterator'␤[...] colomon ArrayIterator ?! * masak submits rakudobug This feels wrong. Surely it

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 http://www.parrot.org). The tarball for this release is available from

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 ge...@broadwell.org Date: Thu, 20 Oct 2011 21:28:36 -0700 Subject: [PATCH] List.unshift(): loop while @elems is non-empty, not while

[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. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=101912 [19:58] bbkr_ everyone: can you please confirm segfault in this code on your

[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␤ in

[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: bbkr rakudo: grammar CSV { has Str $.sep }; say CSV.new(sep = ,).sep p6eval rakudo 0bb373: OUTPUT«Any()␤» bbkr hmm, why Any() ? masak bbkr: it's the new 'undef' jnthn masak: Yes, but shoulda been Str. masak o.O jnthn erm, shoulda been , actually

[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: masak rakudo: class A {}; class B { has A $.foo .= new } p6eval rakudo c4857a: OUTPUT«too few positional arguments: 1 passed, 2 (or more) expected [...] slavik s1n: it will take 1 month to do that ... * masak submits rakudobug masak alpha: class A

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 perl6-bugs-follo...@perl.org wrote: On Sun May 02 08:33:11 2010, masak wrote: masak rakudo: class A {}; class B { has A $.foo .= new } p6eval rakudo c4857a: OUTPUT«too few positional arguments: 1 passed, 2 (or more) expected [...] slavik

[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. Cheers, Moritz

[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_ rakudo: eval 'say 1'

[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: pmichaud rakudo: package A { package C::B { our sub c { say OH HAI } } }; A::C::B::c p6eval rakudo 1727ca: OUTPUT«Can not find sub A::C::B::c [...] pmichaud that one is wrong (afaik) masak cognominal: :) pmichaud that should've printed OH HAI *

[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: szabgab rakudo: say %*ENV.perl p6eval rakudo 9b6189: OUTPUT�Method 'key' not found for invocant of class 'String' [...] masak that looks like Parrot things leaking through. * masak submits rakudobug All of these work now except for $*PATH, which

[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 appropriately print Hello

[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: oyse How do you modify a environment variable in Perl6. Tried %*ENVTEST = 'Test', but that does not work masak it should. masak rakudo: %*ENVTEST = 'Test'; say %*ENVTEST p6eval rakudo 2c8bb8: OUTPUT«Cannot modify readonly value␤ in 'infix:=' [...]

[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 'method'

[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: masak rakudo: say ~(1, 1, [+] ... *)[^10] p6eval rakudo 11cbd4: OUTPUT«get_attr_str() not implemented in class 'Perl6MultiSub'␤ in 'infix:...' at line 1 [...] * masak submits rakuodbug colomon rakudo: say ~(1, 1, [+] ... 50) p6eval rakudo 11cbd4:

[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. Ca([]) 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) $ perl6

[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 $ perl6 t.pm