Re: Why pass by reference?

2009-06-18 Thread Martin D Kealey
On Fri, 19 Jun 2009, Martin D Kealey wrote: > To that end I would propose that: > - parameters should be read-only AND invariant by default, and > - that invariance should be enforced passing a deep immutable clone >(*5) in place of any object that isn't already immutable. Sorry, typo: that

Re: Why pass by reference?

2009-06-18 Thread Martin D Kealey
> Matthew Walton wrote: > > If a user of your API contrives to make it change while you're > > running, that's their own foot they've just shot, because they can > > look at the signature and know the semantics of the parameter > > passing being used and know that if they change the value external

Rakudo Perl 6 development release #18 ("Pittsburgh")

2009-06-18 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the June 2009 development release of Rakudo Perl #18 "Pittsburgh". Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the June 2009 release is available from http://github.com/rakudo/rakudo/down

Re: Array Dimensionality

2009-06-18 Thread yary
Apologies for the long post with mistakes in it. I'm going to try again, biting off less. my @g[2;2]; @g[0;0]='r0c0'; @g[0;1]='r0c1'; @g[1;0]='r1c0'; @g[1;1]='r1c1'; @g[1] is due to S09: Multi-dimensional arrays, on the other hand, know how to handle a multidimensional slice, with one subslice

Re: Array Dimensionality

2009-06-18 Thread yary
I think this proposal goes to far in the dwimmery direction- On Sat, Jun 13, 2009 at 12:58 PM, John M. Dlugosz<2nb81l...@sneakemail.com> wrote: > Daniel Ruoso daniel-at-ruoso.com |Perl 6| wrote: >> >> So, how do I deal with a multidim array? Well, TIMTOWTDI... >> >> my @a = 1,[2,[3,4]]; >> say @

[perl #66694] [BUG] a memory error occurs when the a method overridden in an 'is also' class declaration is called in Rakudo

2009-06-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66694] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66694 > rakudo: class Failure is also { method foo {say "OH HAI"} }; .foo rakudo 9dc941: OUTPU

[perl #66450] [BUG] Inexplicable Parrot error when running some PIR-compiled modules in Rakudo

2009-06-18 Thread Carl Mäsak via RT
I can no longer reproduce this problem locally. Resolving ticket.

Re: [perl #43078] [DOCS] document how lexical naming works with non-ascii

2009-06-18 Thread Patrick R. Michaud
On Wed, Jun 17, 2009 at 12:28:23PM -0700, Will Coleda via RT wrote: > On Wed May 30 07:10:39 2007, coke wrote: > > Will Coleda (via RT) writes: > > > > > # New Ticket Created by Will Coleda > > > # Please include the string: [perl #43078] > > > # in the subject line of all future correspondence

[perl #66702] [BUG] subs declared with an invocant should have a better error message in Rakudo

2009-06-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66702] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66702 > <[particle]> rakudo: sub postcircumfix:<[ ]>(Str $s: @i) { my $res = ""; for @i { $res ~

Re: r27106 - docs/Perl6/Spec

2009-06-18 Thread Aaron Crane
pugs-comm...@feather.perl6.nl writes: > +The C type is derived from C, with the additional constraint > +that it may only contain validly encoded UTF-8. Likewise, C is > +derived from C, and C from C. What does "validly encoded UTF-8" mean in this context? The following questions come to mind:

[perl #66658] [BUG] .wrap gets lexicals mixed up in Rakudo

2009-06-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66658] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66658 > rakudo: my @subs := (&greet,&meet); for @subs -> $sub {my $name = $sub.name; say "Wrapp