How to "make smoke" when parrot won't make? (was Re: [perl #63922] Fresh rakudo fails to build on FreeBSD)

2009-03-17 Thread yary
> I just pulled the fresh rakudo sources, Configured them with > --gen-parrot and the parrot build fails: ... > ./miniparrot config_lib.pasm > runtime/parrot/include/config.fpmc ... > Null PMC access in get_pmc_keyed_str() > gmake: *** [runtime/parrot/include/parrotlib.pbc ... It looks like I'm ha

r25880 - docs/Perl6/Spec

2009-03-17 Thread pugs-commits
Author: lwall Date: 2009-03-18 02:28:39 +0100 (Wed, 18 Mar 2009) New Revision: 25880 Modified: docs/Perl6/Spec/S03-operators.pod docs/Perl6/Spec/S04-control.pod Log: create more semantic distance between terms and 0-ary functions Modified: docs/Perl6/Spec/S03-operators.pod

[perl #63946] [TODO] Implement ||=

2009-03-17 Thread jn...@jnthn.net via RT
On Tue Mar 17 00:06:31 2009, masak wrote: > rakudo: my $frew; $frew ||= 5; say $frew; > rakudo 84920e: OUTPUT«get_iter() not implemented in class > 'Integer[...] > rakudo: my $frew; $frew //= 5; say $frew; > rakudo 84920e: OUTPUT«5␤» > weird > I wonder if maybe it's a parsing error > fr

Re: [perl #56976] [TODO] implement state variables

2009-03-17 Thread Jonathan Worthington
Nicholas Clark wrote: On Tue, Mar 17, 2009 at 06:45:51PM +0100, Jonathan Worthington wrote: Nicholas Clark wrote: Yay. As does this? my @bar = 1,2,3; sub swatest { (state @foo) = @bar; my $x = @foo.perl; @foo[0]++; return $x } is swatest(), '[1, 2, 3]',

[perl #63918] eigenstates method on Object

2009-03-17 Thread jn...@jnthn.net via RT
On Mon Mar 16 00:57:05 2009, richardh wrote: > An .eigenstates method is needed for Object. > ... > Larry Wall wrote: > I see no particular reason not to add an .eigenstates method to Object > that returns a list of the object itself . > And so it is added in git 1ea27f2, plus tests. Thanks! J

Re: [perl #56976] [TODO] implement state variables

2009-03-17 Thread Nicholas Clark
On Tue, Mar 17, 2009 at 06:45:51PM +0100, Jonathan Worthington wrote: > Nicholas Clark wrote: > >Yay. As does this? > > > > my @bar = 1,2,3; > > sub swatest { > > (state @foo) = @bar; > > my $x = @foo.perl; > > @foo[0]++; > > return $x > > } > > is swatest(), '[1, 2,

[perl #63908] ~$stuff.WHAT should end in ()

2009-03-17 Thread jn...@jnthn.net via RT
On Sun Mar 15 15:27:41 2009, moritz wrote: > S12-objects.pod > 1581:WHATthe protoobject of the type, stringifies to short > name ~ '()' > > Currently it stringfies to short name without trailing (). > > If somebody submits a patch for it, I'll fix the test suite (which has > this wron

Re: [perl #56976] [TODO] implement state variables

2009-03-17 Thread Moritz Lenz
Nicholas Clark via RT wrote: > On Tue, Mar 17, 2009 at 05:59:52PM +0100, Jonathan Worthington wrote: >> Nicholas Clark wrote: >> >Do you have list assignment working properly? ie: >> > >> >state (@foo) = @bar; >> > >> >and, I think, >> > >> >state (@foo) = baz(); >> > >> > >> Aye, thankf

[perl #63906] Matching against Junction fails

2009-03-17 Thread jn...@jnthn.net via RT
On Sun Mar 15 12:12:51 2009, richardh wrote: > perl6 > > my @x=1|11,2,3;my $s=[+] @x; $s.perl.say; $s ~~ Junction and say 'hi' > any(6, 16) > Null PMC access in get_integer() > Fixed in git 90c8b8e. > my @x=1|11,2,3;my $s=[+] @x; $s.perl.say; $s ~~ Junction and say 'hi' any(6, 16) hi Thanks, J

Re: [perl #56976] [TODO] implement state variables

2009-03-17 Thread Jonathan Worthington
Nicholas Clark wrote: Yay. As does this? my @bar = 1,2,3; sub swatest { (state @foo) = @bar; my $x = @foo.perl; @foo[0]++; return $x } is swatest(), '[1, 2, 3]', 'array state initialized correctly'; is swatest(), '[1, 2, 3]', 'array state retained betwe

[perl #63824] [PATCH] build/gen_metaop_pir.pl: added missing backslash in \u00bb

2009-03-17 Thread jn...@jnthn.net via RT
On Thu Mar 12 15:29:54 2009, kru...@gmail.com wrote: > diff --git a/build/gen_metaop_pir.pl b/build/gen_metaop_pir.pl > index 3f858a3..78e4fce 100644 > --- a/build/gen_metaop_pir.pl > +++ b/build/gen_metaop_pir.pl > @@ -131,7 +131,7 @@ while (@ops) { > .end\n); > > # LHS-dwimming hyp

Re: [perl #56976] [TODO] implement state variables

2009-03-17 Thread Nicholas Clark
On Tue, Mar 17, 2009 at 05:59:52PM +0100, Jonathan Worthington wrote: > Nicholas Clark wrote: > >Do you have list assignment working properly? ie: > > > >state (@foo) = @bar; > > > >and, I think, > > > >state (@foo) = baz(); > > > > > Aye, thankfully that just fell naturally out of Rakudo

Re: [perl #56976] [TODO] implement state variables

2009-03-17 Thread Jonathan Worthington
Nicholas Clark wrote: Do you have list assignment working properly? ie: state (@foo) = @bar; and, I think, state (@foo) = baz(); Aye, thankfully that just fell naturally out of Rakudo's existing list assignment implementation, though it was under-tested. So I just added: my @

[perl #62184] Rakudo doesn't DTRT with 'state' variables and cloned blocks

2009-03-17 Thread jn...@jnthn.net via RT
On Sun Jan 11 04:59:51 2009, masak wrote: > Rakudo r35404 doesn't work according to spec in the area of 'state' > variables and cloned blocks. > > $ perl6 -e 'my $i = 0; my $func = { state $x = $i++; say $x }; my ($a, > $b) = $func.clone, $func.clone; $a(); $b(); $a()' > 0 > 1 > 2 > > According t

Re: [perl #56976] [TODO] implement state variables

2009-03-17 Thread Nicholas Clark
On Tue, Mar 17, 2009 at 09:19:55AM -0700, jn...@jnthn.net via RT wrote: > On Wed Jul 16 01:47:29 2008, mor...@casella.verplant.org wrote: > > State variables need to be implemented, the tests are already there in > > S04-declarations/state.t > > > > As a side node (and related to RT #56748), rakud

[perl #56976] [TODO] implement state variables

2009-03-17 Thread jn...@jnthn.net via RT
On Wed Jul 16 01:47:29 2008, mor...@casella.verplant.org wrote: > State variables need to be implemented, the tests are already there in > S04-declarations/state.t > > As a side node (and related to RT #56748), rakudo as of r29490 gives a > bogus error message when encountering a state declaration

[perl #56976] [TODO] implement state variables

2009-03-17 Thread jn...@jnthn.net via RT
On Wed Jul 16 01:47:29 2008, mor...@casella.verplant.org wrote: > State variables need to be implemented, the tests are already there in > S04-declarations/state.t > > As a side node (and related to RT #56748), rakudo as of r29490 gives a > bogus error message when encountering a state declaration

[perl #63946] [TODO] Implement ||=

2009-03-17 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63946] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63946 > rakudo: my $frew; $frew ||= 5; say $frew; rakudo 84920e: OUTPUT«get_iter() not impleme

Re: a junction or not

2009-03-17 Thread David Green
On 2009-Mar-17, at 2:16 am, Jon Lang wrote: $choice.perl will return the same thing that the following would: any($choice.eigenstates.«perl) That is, it would return a Junction of Str, not a Str. So the question is how to get something that returns an expression to the effect of: 'any('

Re: a junction or not

2009-03-17 Thread Jon Lang
Darren Duncan wrote: > > Jon Lang wrote: >> >> Darren Duncan wrote: >>> I would assume that invoking .perl on a Junction would result in Perl >>> code >>> consisting of the appropriate any/all/etc expression. -- Darren Duncan >> >> Tough to parse, though; and feels like a kludge.  I expect better o