r30205 - docs/Perl6/Spec

2010-03-26 Thread pugs-commits
Author: lwall Date: 2010-03-26 08:38:16 +0100 (Fri, 26 Mar 2010) New Revision: 30205 Modified: docs/Perl6/Spec/S02-bits.pod docs/Perl6/Spec/S03-operators.pod docs/Perl6/Spec/S05-regex.pod docs/Perl6/Spec/S06-routines.pod docs/Perl6/Spec/S12-objects.pod Log: [specs] Make it clear

Re: You never have privacy from your children in Perl 6

2010-03-26 Thread Carl Mäsak
Carl (), Darren (): I didn't get it to trust me, though: masak pugs: class A { has $!foo }; class B { trusts A; method bar(A $a) { say $a!foo } }; B.new.bar(A.new(:bar(42))) p6eval pugs: OUTPUT«␤» Either it bitrotted or I'm using it wrong. You're using it wrong.  You need to put 'trusts

Re: You never have privacy from your children in Perl 6

2010-03-26 Thread Jason Switzer
On Fri, Mar 26, 2010 at 7:16 AM, Carl Mäsak cma...@gmail.com wrote: You're using it wrong. You need to put 'trusts B;' in A in order for B to see A's privates. I hope it is obvious why this is the case. -- Darren Duncan Aye, my mistake. Apparently the syntax I used to try to get at the

Re: r30205 - docs/Perl6/Spec

2010-03-26 Thread Geoffrey Broadwell
On Fri, 2010-03-26 at 08:38 +0100, pugs-comm...@feather.perl6.nl wrote: .doit: { $^a = $^b } # okay .doit(): { $^a = $^b }# okay .doit(1,2,3): { $^a = $^b } # okay +.doit(1,2,3): { $^a = $^b } # okay +.doit:{ $^a = $^b }

r30211 - docs/Perl6/Spec

2010-03-26 Thread pugs-commits
Author: lwall Date: 2010-03-27 01:59:04 +0100 (Sat, 27 Mar 2010) New Revision: 30211 Modified: docs/Perl6/Spec/S12-objects.pod Log: [S12] pasto noticed by goeff++ Modified: docs/Perl6/Spec/S12-objects.pod === ---