[patch]: typo of perl6 book

2010-06-20 Thread Hongwen Qiu
diff --git a/src/subs-n-sigs.pod b/src/subs-n-sigs.pod index b6a91cb..128f1ae 100644 --- a/src/subs-n-sigs.pod +++ b/src/subs-n-sigs.pod @@ -141,7 +141,7 @@ variables in your signature are read-only references to the passed arguments. You cannot modify them passed-in values within the subroutine

Re: Two questions on Perl 6 functionality

2010-06-20 Thread Xi Yang
I still have several points unclear, this is my sample: ### class Base { method toHash() { return {}; } } role FooBar { has $.foo is rw; has $.bar is rw; toHash.wrap({ my $hash = callsame(); $hash = $self.foo;

RE: Two questions on Perl 6 functionality

2010-06-20 Thread Xi Yang
Very subtle implementation, I'm trying to understand those things. Thanks! > Date: Sun, 20 Jun 2010 13:53:59 +0200 > From: mor...@faui2k3.org > To: jianding...@msn.com > CC: perl6-us...@perl.org > Subject: Re: Two questions on Perl 6 functionality > > > > Xi Yang wrote: > > You might mis-unders

Re: The obligation of free stuff: Google Storage

2010-06-20 Thread Aaron Sherman
First off, I again have to caution that this thread is conflating "open" with filesystem interaction. While open is one of many ways of interacting with a filesystem, it isn't even remotely sufficient (nor my immediate focus). One can ask for and modify filesystem metadata, security information, an

[perl #69362] [LHF] WhateverCode objects don't have a signature

2010-06-20 Thread jn...@jnthn.net via RT
On Thu Sep 24 13:56:16 2009, moritz wrote: > 22:53 <@moritz_> rakudo: say (*-3).signature.perl > 22:53 <+p6eval> rakudo 0eaf62: OUTPUT«undef␤» > 22:54 <@moritz_> rakudo: say (-> $x { $x - 3 }).signature.perl > 22:54 <+p6eval> rakudo 0eaf62: OUTPUT«:(Object $x)␤» > > I'd expect those two things to

[perl #66330] tests available

2010-06-20 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S12-introspection/walk.t commit cc81d63c2c6fd91dd85c16c45c0862fd2a26f040 Author: jnthn Date: Sun Jun 20 11:52:34 2010 + [t/spec] Add a test for RT#66330 to walk.t. Also tweak a couple of tests

RE: Two questions on Perl 6 functionality

2010-06-20 Thread Xi Yang
You might mis-understood method modifiers. I mean: before x() after x() around x() > Date: Sun, 20 Jun 2010 12:17:46 +0200 > From: mor...@faui2k3.org > To: jianding...@msn.com > CC: perl6-us...@perl.org > Subject: Re: Two questions on Perl 6 functionality > > Hi, > > Xi Yang wrote: > > 1:

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

2010-06-20 Thread jn...@jnthn.net via RT
On Sat Jun 12 13:42:18 2010, maard wrote: > created during today's hackmeet with Jonathan Worthington. > attached patch (including handles2.t) partially solves the problem (by > adding add_handles_method method to the core). current problem is: it > seems that handler attributes don't get passed to

Unicode tests for Lexical Conventions

2010-06-20 Thread Aaron Sherman
I noticed that there were no tests for the "Lexical Conventions" section of S02, so I tried my hand at writing some. Unfortunately, many of them are failing, and I'm new enough to writing Perl 6 tests that I'm not sure if this is the compiler failing to match the spec or me failing to write tests ;

[perl #75872] LTA error message when no multi method candidate can be invoked

2010-06-20 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #75872] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75872 > 12:11 <@moritz_> rakudo: class A { multi method b($x where { 0 } ) { } }; A.new.b(4) 12:1

[perl #75852] [BUG] Can't declare a class A after importing a file which defines a type A::B in Rakudo

2010-06-20 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #75852] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75852 > $ cat A/B.pm class A::B {} $ perl6 -e 'use A::B; class A {}' ===SORRY!=== Illegal redec

[perl #75836] [PATCH] Adding support for Capture.perl method

2010-06-20 Thread jn...@jnthn.net via RT
On Thu Jun 17 14:12:21 2010, cognominal wrote: > From 7aab67d352ef4b6688d8ce9d11413825dc8ab3ec Mon Sep 17 00:00:00 2001 > From: Stephane cognominal Payrard > Date: Thu, 17 Jun 2010 22:47:00 +0200 > Subject: [PATCH] Adding support for Capture.perl method > > --- > build/Makefile.in |1 + >

Re: The obligation of free stuff: Google Storage

2010-06-20 Thread C.J. Adams-Collier
On Thu, 2010-06-10 at 21:17 -0400, Brandon S. Allbery KF8NH wrote: > On Jun 10, 2010, at 07:22 , Leon Timmermans wrote: > > I agree it should be similar to normal FS interactoin to make matters > > as intuitive as possible, but I horrified by the idea of overloading > > open() that way. That's a P

[perl #75822] [BUG] Can't instantiate a role with two arguments in Rakudo

2010-06-20 Thread jn...@jnthn.net via RT
On Thu Jun 17 02:24:10 2010, masak wrote: > rakudo: role A[$x, $y] { method x { say $x + $y } }; A[4, 5].new.x > rakudo 012ea2: OUTPUT«No applicable candidates found to > dispatch to for '_block52'. Available candidates are:␤:(Mu $x, Mu > $y)␤␤ in main program body at line 1␤» > ...wtf? > * mas

[perl #75874] [BUG] A real fail when doing $obj!Foo::privmeth in Rakudo

2010-06-20 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #75874] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75874 > $b!SomeClass::xyz - would that not conflict with calling a private method in a particul

[perl #75830] [BUG] 5 ~~ Real (and 5 ~~ Int and Int ~~ Real), but ('foo' but 5) !~~ Real in Rakudo

2010-06-20 Thread jn...@jnthn.net via RT
On Thu Jun 17 08:47:54 2010, masak wrote: > 5 but 'string' is the same as 5 but (role { method Str() { > 'string'} }), 5 but True is 5 but (role { method Bool() { True } }) > rakudo: say ('foo' but 5) ~~ Real > rakudo 17e43e: OUTPUT«0␤» > rakudo: say ('foo' but Real) ~~ Real > rakudo 17e43e: O

[perl #75868] Infinite recursion when using Match object as hash key

2010-06-20 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #75868] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75868 > ./perl6 -e 'my %h = a => 1; "a" ~~ /./; say %h{$/}' maximum recursion depth exceeded in

[perl #75858] [BUG] Can't use a where clause on an attribute without surrounding name and where clause in parentheses in Rakudo

2010-06-20 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #75858] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75858 > std: class A { has Int $.color where 1|2; } std 31360: OUTPUT«===SORRY!===␤Two term