Re: [perl #117235] [BUG] Deep-cloned array loses its original content on .unshift in Rakudo

2013-03-21 Thread Moritz Lenz
On 03/20/2013 10:37 PM, Patrick R. Michaud wrote: On Wed, Mar 20, 2013 at 12:41:41PM -0700, Carl Mäsak wrote: # New Ticket Created by Carl Mäsak # Please include the string: [perl #117235] # in the subject line of all future correspondence about this issue. # URL:

Re: [perl #117235] [BUG] Deep-cloned array loses its original content on .unshift in Rakudo

2013-03-21 Thread Patrick R. Michaud
On Thu, Mar 21, 2013 at 08:49:42AM +0100, Moritz Lenz wrote: -method sink() { -self.gimme(*, :sink); +method sink(\SELF:) { +SELF.gimme(*, :sink) unless nqp::iscont(SELF); Nil; } } But of course it's not a real fix. Should I apply it? I think I

Re: [perl #117237] error building rakudo star 2013.02

2013-03-21 Thread Patrick R. Michaud
On Wed, Mar 20, 2013 at 04:41:16PM -0700, James Buster wrote: I believe this error is occurring because something is looking for nqp_dyncall_ops.so in a place other than would be implied by the -prefix argument to Configure.pl. That is, it's probably looking in /usr/lib or /usr/local/lib and

naming the test of arrays defined

2013-03-21 Thread Nicholas Clark
I completely agree that there is need for a test of arrays and hashes (and scalars?) of was the optional parameter passed in?. There may be other pertinent uses that I'm not aware of. I think that this sums up my unease about calling the test defined. This is Perl 5: $ ~/test/undefined.pl For

Re: naming the test of arrays defined

2013-03-21 Thread Nicholas Clark
On Thu, Mar 21, 2013 at 04:50:40PM +, Nicholas Clark wrote: Bother. That should have been more to perl6-language than perl6-compiler. Should I resend it? Nicholas Clark

Re: naming the test of arrays defined

2013-03-21 Thread Patrick R. Michaud
On Thu, Mar 21, 2013 at 04:52:16PM +, Nicholas Clark wrote: On Thu, Mar 21, 2013 at 04:50:40PM +, Nicholas Clark wrote: Bother. That should have been more to perl6-language than perl6-compiler. Should I resend it? Either is fine for this; since we're really into a bit of an

Re: naming the test of arrays defined

2013-03-21 Thread Patrick R. Michaud
I don't quite follow the unease from this example, but that's probably because of the way that Perl 6 thinks of undefined being different from Perl 5's undef and defined. In particular: ... sub array { my $what = shift; my $array = []; return $array if $what eq 'undef'; Perl 6

Re: [perl #117235] [BUG] Deep-cloned array loses its original content on .unshift in Rakudo

2013-03-21 Thread Moritz Lenz
On 03/21/2013 01:40 PM, Patrick R. Michaud wrote: On Thu, Mar 21, 2013 at 08:49:42AM +0100, Moritz Lenz wrote: -method sink() { -self.gimme(*, :sink); +method sink(\SELF:) { +SELF.gimme(*, :sink) unless nqp::iscont(SELF); Nil; } } But of course

Re: naming the test of arrays defined

2013-03-21 Thread Nicholas Clark
On Thu, Mar 21, 2013 at 12:58:01PM -0500, Patrick R. Michaud wrote: I don't quite follow the unease from this example, but that's probably because of the way that Perl 6 thinks of undefined being different from Perl 5's undef and defined. In particular: ... sub array { my $what

Re: [perl #117235] [BUG] Deep-cloned array loses its original content on .unshift in Rakudo

2013-03-21 Thread Patrick R. Michaud
On Thu, Mar 21, 2013 at 08:14:08PM +0100, Moritz Lenz wrote: On 03/21/2013 01:40 PM, Patrick R. Michaud wrote: On Thu, Mar 21, 2013 at 08:49:42AM +0100, Moritz Lenz wrote: -method sink() { -self.gimme(*, :sink); +method sink(\SELF:) { +SELF.gimme(*, :sink) unless

Announce: Rakudo Perl 6 compiler, Development Release #62 (Singapore)

2013-03-21 Thread Carl Mäsak
On behalf of the Rakudo development team, I'm proud to announce the March 2013 release of Rakudo Perl #62 Singapore. Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine (see http://www.parrot.org). The tarball for this release is available from http://rakudo.org/downloads/rakudo/.