r31405 -[S12] verbo

2010-06-21 Thread pugs-commits
Author: diakopter Date: 2010-06-22 03:17:22 +0200 (Tue, 22 Jun 2010) New Revision: 31405 Modified: docs/Perl6/Spec/S12-objects.pod Log: [S12] verbo Modified: docs/Perl6/Spec/S12-objects.pod === --- docs/Perl6/Spec/S12-objects.pod

r31404 -[S12] sppelo

2010-06-21 Thread pugs-commits
Author: diakopter Date: 2010-06-22 03:14:30 +0200 (Tue, 22 Jun 2010) New Revision: 31404 Modified: docs/Perl6/Spec/S12-objects.pod Log: [S12] sppelo Modified: docs/Perl6/Spec/S12-objects.pod === --- docs/Perl6/Spec/S12-objects.pod

Re: Something wrong with str.reverse

2010-06-21 Thread yary
Warning on using any list-y op on a scalar seems like a good idea, and the fact that the idea arose after a perl5 misunderstanding now looks like a "red herring". That is, while warning on "only" reverse-on-a-scalar may be a bad idea and perl5 specific, I'd vote for warning on all apparent mis-uses

Re: Something wrong with str.reverse

2010-06-21 Thread Jan Ingvoldstad
On Mon, Jun 21, 2010 at 10:47, Smylers wrote: > Larry Wall writes: > > > On Fri, Jun 18, 2010 at 11:21:52AM +0200, Jan Ingvoldstad wrote: > > > > : On Fri, Jun 18, 2010 at 11:15, Smylers wrote: > > : > > : > For the benefit of Perl 5 programmers used to string reverse it > > : > would be nice to

Re: Something wrong with str.reverse

2010-06-21 Thread Patrick R. Michaud
On Mon, Jun 21, 2010 at 09:47:37AM +0100, Smylers wrote: > Larry Wall writes: > > On Fri, Jun 18, 2010 at 11:21:52AM +0200, Jan Ingvoldstad wrote: > > : On Fri, Jun 18, 2010 at 11:15, Smylers wrote: > > : > > : > For the benefit of Perl 5 programmers used to string reverse it > > : > would be nic

Re: Two questions on Perl 6 functionality

2010-06-21 Thread Moritz Lenz
Xi Yang wrote: > You might mis-understood method modifiers. I mean: > before x() > after x() > around x() > In Perl 6, you do that with wrapping: http://perlcabal.org/syn/S06.html#Wrapping Cheers, Moritz

[perl #75840] Parrot's ns_func_cleanup branch.

2010-06-21 Thread jn...@jnthn.net via RT
On Thu Jun 17 18:08:32 2010, Whiteknight wrote: > Here's a patch to make Rakudo build on current Parrot after the > ns_func_cleanup branch (r47678). > Applied by moritz++, thanks. Jonathan

[perl #75266] [BUG] Indexing an attribute array with a Num causes MMD not to match in Rakudo

2010-06-21 Thread jn...@jnthn.net via RT
On Sat May 22 07:47:38 2010, masak wrote: > rakudo: class A {has $.a; has @.m; method foo { for $.a > .. 5 { say @.m[$_] }}}; my A $x.=new(:a(2.0),:m(1,2,3,4,5));$x.foo > rakudo 9a15b8: OUTPUT«No applicable candidates found to > dispatch to for 'postcircumfix:<[ ]>'. Available candidates are:␤:(M

Re: Something wrong with str.reverse

2010-06-21 Thread Smylers
Larry Wall writes: > On Fri, Jun 18, 2010 at 11:21:52AM +0200, Jan Ingvoldstad wrote: > > : On Fri, Jun 18, 2010 at 11:15, Smylers wrote: > : > : > For the benefit of Perl 5 programmers used to string reverse it > : > would be nice to have a warning if reverse is invoked with exactly > : > one

[perl #75900] Different semantics in multi vs sub

2010-06-21 Thread via RT
# New Ticket Created by jn...@jnthn.net # Please include the string: [perl #75900] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75900 > This may, or may not, be a case of the closures bug, but: use v6; my @my-array = 4,

[perl #75896] [BUG] Internal error when declaring an array to be of type 'Array of Int' in Rakudo

2010-06-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #75896] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75896 > rakudo: my Array of Int @box rakudo ee7620: OUTPUT«Method '!select' not found for invo

[perl #68252] S12-introspection/walk.t aborting on current Rakudo

2010-06-21 Thread jn...@jnthn.net via RT
On Thu Aug 06 07:58:37 2009, masak wrote: > rakudo: 1.WALK(:name,:descendant) > rakudo 6ba717: OUTPUT«Parameter type check failed; expected > Any, but got Object for $class in call to block_86 [...] > > This is a golfed-down example of the error that currently causes > t/spec/S12-introspection/w

Re: Two questions on Perl 6 functionality

2010-06-21 Thread Moritz Lenz
Hi, Xi Yang wrote: > 1: Does Perl 6 has method modifiers like those in Moose? Perl 6 has traits, so you can write for example class A { method x() is rw { ...} } to indicate that it's an lvalue routine (though I don't think it's implemented in Rakudo yet). > Where can I get the doc about t

[perl #66330] [BUG] Null PMC access when calling Grammar.WALK in Rakudo

2010-06-21 Thread jn...@jnthn.net via RT
On Fri Jun 05 03:05:41 2009, masak wrote: > rakudo: my ($meth) = Grammar.WALK(:name); > $meth(Perl6::Grammar.new, '42') > rakudo 10a9b2: OUTPUT«Null PMC access in find_method()␤in > method Perl6Object::WALK (src/gen_setting.pm:3207) [...] > Eww. > OK, oddness. > * masak submits rakudobug > aah

[perl #75386] [BUG] Rakudo doesn't implement 'handles' (but used to)

2010-06-21 Thread jn...@jnthn.net via RT
On Thu May 27 10:52:50 2010, masak wrote: > rakudo: class A { has @.contents handles }; say > A.new(:contents(1, 2, 3)).elems > rakudo e40ee4: OUTPUT«1␤» > * masak submits rakudobug > masak: handles nyi > it used to be i :( > hm, perhaps an example with a method not already in Any would > be

Re: [patch]: typo of perl6 book

2010-06-21 Thread Moritz Lenz
Thanks for the patch, I've applied it. If you have a github ID, please tell me what it is -- I can add you as a committer to the book, so that you can apply such fixes directly in future. Cheers, Moritz