Re: [perl #60828] [BUG] ^...@list returns ridicously long lists

2008-11-26 Thread Patrick R. Michaud
On Wed, Nov 26, 2008 at 06:21:22PM -0800, Larry Wall wrote: > On Wed, Nov 26, 2008 at 08:54:50AM +0100, Moritz Lenz wrote: > : Patrick R. Michaud wrote: > : > Currently Rakudo is treating [EMAIL PROTECTED] as though it's > : > prefix:<^> on a List, which S03 says > : > for ^(3,3) { ... } # (0,

Re: [perl #60828] [BUG] ^...@list returns ridicously long lists

2008-11-26 Thread Larry Wall
On Wed, Nov 26, 2008 at 08:54:50AM +0100, Moritz Lenz wrote: : : : Patrick R. Michaud wrote: : > Currently Rakudo is treating [EMAIL PROTECTED] as though it's : > prefix:<^> on a List, which S03 says : > : > If [prefix:<^> is] applied to a list, it generates a : > multidimensional set o

[perl #60404] Array becomes string in subroutine or method calls

2008-11-26 Thread Patrick R. Michaud via RT
Unfortunately I think this patch causes the following to fail: sub foo($a) { 1.say for $a } foo((1,2,3)); The problem is that simply looking at (misnamed) Perl6Scalar and deciding what to do is a little coarse-grained. The real problem is in the argument binding to a scalar versus array

[perl #60404] Array becomes string in subroutine or method calls

2008-11-26 Thread jn...@jnthn.net via RT
On Sat Nov 08 09:32:09 2008, pmichaud wrote: > On Sat, Nov 08, 2008 at 12:54:52AM -0800, Ilya Belikin wrote: > > sub foo (@a) { 1.say for @a } > > foo((1,2,3,4)); # only one 1 > > foo([1,2,3,4]); # only one 1 > > foo( my @a = 1,2,3 ); # only one 1 > > > > This one really pesky bug :( >

[perl #60868] [].min and [].max think +Inf and -Inf (respectively) are spelled "undef"

2008-11-26 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #60868] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60868 > >From Rakudo r33221: $ perl6 -e'say [].min' Use of uninitialized value $ perl6 -e'say

[perl #60854] died when try to instant class with attribute type Range

2008-11-26 Thread via RT
# New Ticket Created by Ilya Belikin # Please include the string: [perl #60854] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60854 > Hi! Rakudo 33212, example: class R { has Range $.range } my $r = R.new; died with: Nul

Re: [perl #60828] [BUG] ^...@list returns ridicously long lists

2008-11-26 Thread Moritz Lenz
Patrick R. Michaud wrote: > Currently Rakudo is treating [EMAIL PROTECTED] as though it's > prefix:<^> on a List, which S03 says > > If [prefix:<^> is] applied to a list, it generates a > multidimensional set of subscripts. > > for ^(3,3) { ... } # (0,0)(0,1)(0,2)(1,0)(1,1)(1,2)(2,

Re: [perl #60404] Array becomes string in subroutine or method calls

2008-11-26 Thread Илья
Thank you, very much! 2008/11/26 Moritz Lenz via RT <[EMAIL PROTECTED]>: > On Sat Nov 08 09:32:09 2008, pmichaud wrote: >> On Sat, Nov 08, 2008 at 12:54:52AM -0800, Ilya Belikin wrote: >> > Hi there, >> > >> > sub foo (@a) { 1.say for @a } >> > foo((1,2,3,4)); # only one 1 >> > foo([1,2,3,4]

[perl #60850] r33207: Multiple spectest failures on OS X

2008-11-26 Thread publiustemp-perl6compil...@yahoo.com (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #60850] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60850 > I still have out of country guests, so I won't have much follow up time on this.

[perl #60718] [PATCH] better error message for .new on undefined class

2008-11-26 Thread [EMAIL PROTECTED] via RT
On Thu Nov 20 20:46:18 2008, [EMAIL PROTECTED] wrote: > If you accidentally try to instantiate a class that has not been > defined, but the namespace for that class has been vivified, then you > get an obscure error message: > ... > With the attached patch, Rakudo instead dies with a more infor

[perl #60150] Rakudo can only call non-lexical &-sigil subs

2008-11-26 Thread [EMAIL PROTECTED] via RT
On Sun Oct 26 14:26:27 2008, masak wrote: > Rakudo r32151 is only able to call &-sigil subs if they have not been > initialized with "my". > > $ ./perl6 -e '&b = &say; &b(5)' # works > 5 > $ ./perl6 -e 'my &b = &say; &b(5)' # fails > Lexical 'b' not found > [...] > This was fixed earlier today,

[perl #60380] [TODO] catch modification of read-only arguments

2008-11-26 Thread jn...@jnthn.net via RT
On Sat Nov 08 04:58:36 2008, bacek wrote: > there is attached patch to factor check readonly status to separate > function. Unfortunately I can't add call to '!CHECK_READONLY' > into (prefix|postfix)(++|--) because I'm waiting to resolve #59596 :) Thanks for the patch. However, it's not really th

[perl #60822] [TODO] lexical subroutines

2008-11-26 Thread jn...@jnthn.net via RT
On Tue Nov 25 13:19:15 2008, moritz wrote: > Rakudo as of r33193 doesn't implement lexical subroutines; neither 'my > sub ...' is implemented nor does 'my $x = sub { ... }' work properly (a > test for the latter can be found in t/spec/integration/man-or-boy.t). > All of: my $x = sub { ... } my &x

Re: [perl #60850] r33207: Multiple spectest failures on OS X

2008-11-26 Thread Ovid
- Original Message > From: "[EMAIL PROTECTED] via RT" <[EMAIL PROTECTED]> > > Thanks for testing. :-) > > On Tue Nov 25 23:38:58 2008, [EMAIL PROTECTED] wrote: > > t/spec/S12-methods/default-trait.t (Wstat: 0 > > Tests: 6 Failed: 1) > > Failed test: 2 > >

[perl #60620] @a[1].=subst parsefail

2008-11-26 Thread [EMAIL PROTECTED] via RT
On Mon Nov 17 13:49:03 2008, masak wrote: > Rakudo r32733: > > rakudo: my @a; @a[0].=subst( '', '') > OUTPUT[PAST::Compiler can't compile a null node␤current > instr.: > [...] Ah, yes, .= was only handling a scalar on the LHS. Thanks to PAST enhancements since I first implemented .=, it was nice

[perl #60778] Strange error message in Rakudo on $var .= "string"

2008-11-26 Thread jn...@jnthn.net via RT
On Mon Nov 24 07:52:42 2008, masak wrote: > $ perl6 -c -e 'my $a; $a .= "A"' > Method 'panic' not found for invocant of class 'PGE;Match' > > I inadvertently wrote this when meaning '~='. It would probably be a > good thing to emit a helpful error message in this case. (Unless it's > legal Perl 6,

Re: [perl #59982] [BUG] MMD fail for undef/complex interaction.

2008-11-26 Thread Patrick R. Michaud
On Wed, Nov 26, 2008 at 04:35:41AM -0800, [EMAIL PROTECTED] via RT wrote: > I believe the Any method would also be exported... > > multi method Complex() is export { ... } > > So we'll get a sub form too... > > Complex(...) > > But trying to introduce a sub form right now causes clashes with th

[perl #60796] There's something wrong with creating classes inside block eval

2008-11-26 Thread jn...@jnthn.net via RT
On Mon Nov 24 15:12:48 2008, masak wrote: > rakudo: eval { class A { has $.x } }; say A.new(x=>5).x > rakudo 33156: OUTPUT[5␤Null PMC access in > find_method()␤current instr.: 'parrot;Perl6;Compiler;main' pc 136910 > (src/gen_actions.pir:13693)␤] > it gives the right answer, but then decides to

[perl #60854] died when try to instant class with attribute type Range

2008-11-26 Thread jn...@jnthn.net via RT
On Wed Nov 26 04:27:12 2008, ihrd wrote: > Hi! > Rakudo 33212, example: > > class R { has Range $.range } > my $r = R.new; > > died with: > Null PMC access in clone() > current instr.: 'parrot;Perl6Object;!cloneattr' pc 782 > Ah yes, a missing null check. Added in r33218. Thanks, Jonathan

[perl #60426] [BUG] Implementation of Enums isn't perfect.

2008-11-26 Thread jn...@jnthn.net via RT
On Sat Nov 08 20:39:00 2008, [EMAIL PROTECTED] wrote: > rakudo: enum Foo; > OUTPUT[A method named 'get_string' already exists in > class ''. It may have been supplied by a role.␤current instr.: > '_block15' pc -339673149 ((unknown file):-1)␤called from Sub > '_block15' pc 169 (EVAL_11:55)␤called

[perl #60366] [PATCH] 'does' fails with roles that have '::' in their names

2008-11-26 Thread jn...@jnthn.net via RT
On Wed Nov 05 22:58:18 2008, [EMAIL PROTECTED] wrote: > There are two bugs here. The attached patch fixes bug #2 but not bug > #1. > > Bug #1) "role A::B" is not interpreted as a role, but just as a module. > >./perl6 -e 'role A { method foo { say "Foo"; } }; say A.WHAT' >Role > >

[perl #59982] [BUG] MMD fail for undef/complex interaction.

2008-11-26 Thread jn...@jnthn.net via RT
On Sun Nov 23 10:33:24 2008, moritz wrote: > On Sat Oct 18 17:15:30 2008, bacek wrote: > > Hello. > > > > 00:05 bacek > > rakudo: my $a; $a = $a + 1i; say $a > > > > 00:05 polyglotbot > > OUTPUT[Multiple Dispatch: No suitable candidate found for 'add', with > > signature 'PPP

Re: [perl #60850] r33207: Multiple spectest failures on OS X

2008-11-26 Thread Ovid
- Original Message > On Tue Nov 25 23:38:58 2008, [EMAIL PROTECTED] wrote: > > t/spec/S12-methods/default-trait.t (Wstat: 0 > > Tests: 6 Failed: 1) > > Failed test: 2 > > > I'd be especially interested in the test output of this one (or to know > if it's no

[perl #60850] r33207: Multiple spectest failures on OS X

2008-11-26 Thread jn...@jnthn.net via RT
Hi! Thanks for testing. :-) On Tue Nov 25 23:38:58 2008, [EMAIL PROTECTED] wrote: > t/spec/S12-methods/default-trait.t (Wstat: 0 > Tests: 6 Failed: 1) > Failed test: 2 > I'd be especially interested in the test output of this one (or to know if it's no longer failing