Re: ADT and GADT

2013-03-21 Thread Carl Mäsak
Philippe (>): > I like solution 2, but am going to have to delve into the Perl 6 > Documentation to > understand its esoteric syntax: S12 will be a big help here. You may have found it already. I include a few quick pointers below, which also may help. > -

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 ). The tarball for this release is available from

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(*,

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 {

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; >> } >> } >> >>

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

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 implem

Re: ADT and GADT

2013-03-21 Thread phiroc
Hi Carl, thanks for your reply. I like solution 2, but am going to have to delve into the Perl 6 Documentation to understand its esoteric syntax: - class Tree { ... } - handles ;, - self.bless(*,, etc.) Philippe - Mail original - De: "Carl Mäsak" À: "Perl6" Envoyé: Jeudi 21 Mars

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

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: ADT and GADT

2013-03-21 Thread Carl Mäsak
Hi Philippe, Philippe (>): > will Abstract Data Types and Generalized Abstract Data Types be available in > Perl6 anytime soon? Algebraic Data Types -- this is a topic that has come up before on #perl6 on IRC. Often enough I've been the one mentioning it. Let's just stop briefly to define a few

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

[perl6/specs] 7371e2: [S12] Remove spurious "of that name" qualifier fro...

2013-03-21 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 7371e2ed8e5297434497e402c7e150629b5498ae https://github.com/perl6/specs/commit/7371e2ed8e5297434497e402c7e150629b5498ae Author: pmichaud Date: 2013-03-20 (Wed, 20 Mar 2013) Changed paths: M S12-objec

[perl #117237] error building rakudo star 2013.02

2013-03-21 Thread via RT
# New Ticket Created by James Buster # Please include the string: [perl #117237] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=117237 > I believe this error is occurring because something is looking for nqp_dyncall_o

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

ADT and GADT

2013-03-21 Thread phiroc
Hello, will Abstract Data Types and Generalized Abstract Data Types be available in Perl6 anytime soon? Many thanks. Philippe

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. # https://rt.perl.org:443/rt3/Tick