On Thu Feb 26 04:37:42 2009, masak wrote:
$ cat A.pm
module A;
sub foo is export {
}
$ perl6 -e 'use A; foo'
Could not find non-existent sub foo
[...]
I may have misunderstood how to use the 'is export' feature, but the
above doesn't work, and that surprises me. What should I do?
We
On Wed Feb 25 18:21:49 2009, i...@nurey.com wrote:
I am on OS X 10.5.6 using perl 5.8.9 from macports.
I cloned rakudo's git repo and then compiled as follows:
$ cd rakudo
$ perl Configure.pl --gen-parrot
$ parrot/parrot_config revision
37000
$ gmake
$ gmake spectest
perl t/harness
On Mon Oct 27 11:21:57 2008, pmichaud wrote:
On Sun, Oct 26, 2008 at 02:47:12PM -0700, Carl Mäsak wrote:
moritz_ rakudo: if(3 5) { say yes } # that should fail
Early experimentation indicates that this goes for unless, while,
until and given as well, and probably others I can't think of
On Mon Oct 27 11:21:57 2008, pmichaud wrote:
On Sun, Oct 26, 2008 at 02:47:12PM -0700, Carl Mäsak wrote:
moritz_ rakudo: if(3 5) { say yes } # that should fail
Early experimentation indicates that this goes for unless, while,
until and given as well, and probably others I can't think of
Closing this ticket, as we'll put any FAQ on the new rakudo.org website
or one of the other Perl 6 websites.
Thanks!
Pm
On Sun Dec 07 13:31:27 2008, bacek wrote:
Hello.
Simple example
ba...@icering:~/src/xquery$ cat m.pl
token a { 'a' };
token b { 'b' };
rule Foo { a | b };
'b' ~~ / Foo /;
given $/Foo {
when .a { say a; };
when .b { say b; };
};
Now fixed in 7bd5a95 (and tests added to
On Sat Dec 27 10:07:39 2008, mberends wrote:
In Rakudo r34416, the exit() function gives:
*** glibc detected *** /usr/local/bin/perl6: double free or
corruption (!prev): 0x013ee070 ***
In a script, other statements prior to exit() execute
correctly. On the command line, perl6
On Fri Jan 02 18:02:41 2009, andy_b...@wiwb.uscourts.gov wrote:
class Prime {
has @!primes is rw;
has Int $!number is rw = 1;
method next() {
my $not_prime = 1;
while($not_prime $!number++) {
$not_prime = @!primes.grep({$!number % $^a == 0});
}
Appears that
On Thu Jan 22 02:48:08 2009, masak wrote:
moritz_ masak: can you submit the 'my Int $x = +2' bug please?
* masak submits
masak rakudo: my Int $x = +'2'
p6eval rakudo 35875: OUTPUT«Type mismatch in assignment. [...]
jnthn rakudo: say WHAT +2;
p6eval rakudo 35875: OUTPUT«Num»
jnthn meh.
I'm guessing this was an issue in the build system and has since been
fixed with the --gen-parrot option to Configure.pl . I'll close the
ticket for now; if the problem is not resolved, feel free to re-open a
ticket (and describe a bit more about your setup so we can try to
reproduce it).
On Fri, Feb 20, 2009 at 10:56:02PM -0500, Garrett Rooney wrote:
On Fri, Feb 20, 2009 at 11:23 AM, perl6 via RT
perl6-bugs-follo...@perl.org wrote:
I'm getting a crash on OS X when trying to build rakudo. This is with
parrot r36907 and the current version of rakudo
On Thu, Feb 26, 2009 at 11:53:21AM -0800, yary wrote:
I have rakudo built under my parrot directory. I updated and rebuilt
parrot, then updated and rebuilt rakudo, but rakudo won
A longer announcement should be hitting the list later today,
but for now the recommended build sequence for rakudo
On Thu, Feb 26, 2009 at 10:06:53PM +0100, Moritz Lenz wrote:
But after that please do a 'make clean; perl Configure.pl' to make sure
that the fallout of the previous build don't affect the new one.
I've been thinking that Configure.pl should force a 'make clean'
to avoid the problem altogether.
On Thu Feb 19 12:03:03 2009, ml...@physik.uni-wuerzburg.de wrote:
Rakudo 00e9db:
.say for (1, 2, 3).item
prints three lines, although it should be just one (same as for [1, 2,
3]), see http://irclog.perlgeek.de/perl6/2009-02-19#i_924753 and below.
There's a test for that in
On Tue, Feb 17, 2009 at 01:24:36PM -0600, Bruce Gray wrote:
On Feb 17, 2009, at 11:36 AM, Kevin HaleBoyes wrote:
A mailing list was created earlier this month.
http://groups.google.com/group/rakudo-commits
The relevant conversation is here:
http://irclog.perlgeek.de/parrot/2009-02-03
On Sun, Feb 15, 2009 at 03:48:04PM -0600, Chris Dolan wrote:
On the fly would require some significant work in PGE, I think, to keep
the line count correct in the face of backtracking. However, this may
already be necessary down the road for proper line numbers in error
messages for code
On Mon, Feb 16, 2009 at 05:59:38PM +0100, Jonathan Worthington wrote:
Patrick R. Michaud wrote:
They're likely doable, yes. I'm not entirely certain how to handle
the case of anonymous grammars, classes, roles, etc. -- those lookups
may be a bit trickier.
I planned to do these just
On Tue, Feb 10, 2009 at 08:32:50PM -0800, Chris Dolan wrote:
The simple attached patch allows embedded code in PGE to call back
into Rakudo. The double curlies are still necessary due to PGE
implementation details. With this patch the following simple
examples work:
% perl6 -e ' ~~
On Wed, Feb 11, 2009 at 05:02:52AM -0800, jn...@jnthn.net via RT wrote:
Was more clone-related fun. I suspect when we've been calling Parrot's
clone directly, we'll usually want to really be calling .clone() on the
object, since it can handle ObjectRef chains. That fixes this issue. (Of
Currently Test.pm disables the warnings to prevent tons of Use of
uninitialized value warnings when running the spectests.
Personally I think the spectests should not produce these warnings in
the first place, but I haven't found a good way to avoid/disable them yet.
Pm
On Sun, Jan 25, 2009 at 07:41:04AM -0800, Carl Mäsak wrote:
[...]
TimToady masak: yes, STD allows use before class Foo is Bar;
TimToady however it's not clear the p6 autorecognizer will work in that case
TimToady so you might have to start with 'use v6'
masak TimToady: I consider starting
Well, we're now at the point where it's time to move the
Rakudo repository, and thus we need a decision on continuing
to use svn for the repository or switching to git.
Obviously staying with svn is very easy to handle. The other
repositories that we have to coordinate with (parrot and pugs)
On Tue, Jan 27, 2009 at 11:25:29AM -0700, Stephen Weeks wrote:
Switching the rakudo repository to git means that it would
likely live on github, at least for a short time. We'd also
have to provide mechanisms for people to continue to obtain
and be able to easily commit to the pugs
On Wed, Jan 14, 2009 at 10:00:33PM -0800, Carl Mäsak wrote:
TimToady rakudo: my $t = 5; say $t.i
p6eval rakudo 35576: OUTPUT«Method 'i' not found for invocant of
class 'Int [...]
masak TimToady: should that work?
TimToady think so
* masak submits rakudobug
Rakudo doesn't yet recognize the
As a comment to my use.perl journal post, Infinoid wrote:
Earlier today on the IRC channel, Will Coleda made an
interesting comment regarding partcl.
07:28 @Coke I'd rather have folks go to /partcl/ to get parrot.
That makes a lot of sense. So, have you given much thought to how
you
As many of you will have gathered from discussions on other mailing
lists and IRC, it's time for Rakudo Perl to leave the Parrot nest
and move to its own repository. I think we should also take this
opportunity to re-evaluate the entire Rakudo Perl infrastructure
and decide what will be most
On Mon, Jan 12, 2009 at 12:57:44PM -0800, publiustemp-perl6compil...@yahoo.com
(via RT) wrote:
This is blocking me implementing a simple 'plan no_plan' for tests.
$ perl6 -e 'my $foo = Goodbye cruel world!; END { say $foo }'
Scope not found for PAST::Var '$foo' in
Confirmed -- there are
On Mon, Jan 12, 2009 at 07:34:33AM -0800, Donald Hunter wrote:
It appears that rakudo changes committed over the weekend have broken NCI.
The last known working revision was #35300 for ext/SQLite3/t/test.p6 which
is crashing on #35440.
You'll need to patch ext/SQLite3/Makefile.PL so that it
Now fixed in r35397:
$ ./parrot perl6.pbc
sub foo(%h?) { { a = 1, %h }.perl.say; };
foo( { b = 2 } );
{a = 1, b = 2}
foo( { } );
{a = 1}
foo( );
{a = 1}
We need tests for optional array and hash parameters in the test suite,
so assigning ticket to moritz. Thanks!
Pm
On Fri Nov 21 14:54:47 2008, masak wrote:
This should output dito twice:
$ ./perl6 -e '{ say $^same; say $same }.(dito)'
Scope not found for PAST::Var '$same'
...but it doesn't in Rakudo r32290.
but it does in r35397:
$ ./parrot perl6.pbc
{ say $^same; say $same }.('rakudo');
On Fri Jan 02 12:21:24 2009, dave.wh...@gmail.com wrote:
The default new method allows values of attributes to be set as
named args -- but rakudo doesn't hoist params from base classes:
dwhipprakudo: class A { has $.foo }; class B is A { has $.bar
};
B.new( foo = 1, bar = 2)
On Sat Jan 10 10:00:20 2009, richardh wrote:
/ digit+ / is what I thought it should be.
{ ... } is what rakudo current gives, which from the point of view of
runnable code and comprehensible output, are wrong.
In general, being able to use .perl on subs and methods implies that an
On Tue Jan 06 15:04:36 2009, mberends wrote:
Up until about mid December 2008, the Rakudo perl6 -e copied
its command line arguments into @*ARGS. Sorry, revision
number unknown. At the end of December, perl6 -e was
ignoring command line arguments. This feature is probably
untested. For
On Wed Jan 07 09:16:32 2009, cspencer wrote:
class Foo {
method list {
say bar
}
};
my $f = Foo.new;
$f.list
will produce the following error in Rakudo:
too few arguments passed (0) - 1 params expected
current instr.: 'parrot;Foo;list' pc 187
On Wed Jan 07 17:54:26 2009, larry wrote:
[...] So my inclination is to outlaw
bare say as well, as an aid to catching a common p5thinko that
some folks might otherwise find difficult to debug.
Bare say and print are now illegal in Rakudo as of r35431. This
currently catches only the truly
On Sun, Jan 11, 2009 at 07:18:53PM -0800, Patrick R. Michaud via RT wrote:
On Wed Jan 07 17:54:26 2009, larry wrote:
Bare say and print are now illegal in Rakudo as of r35431. This
currently catches only the truly bare say/print -- the parenthesized
forms are still allowed:
say
On Sat, Jan 10, 2009 at 09:45:06AM -0800, Carl Mäsak wrote:
mberends rakudo: a b c.split(/ .sp+ /).perl.say
p6eval rakudo 35344: OUTPUT«[, a, b, c]»
TimToady oh, and the p5 behavior of trimming trailing fields is not in p6
TimToady (for split)
* masak submits rakudobug
This looks
Now fixed in r35389:
$ ./parrot perl6.pbc
my $x; say $x, 2
Use of uninitialized value
2
my $x = undef; say $x, 2;
Use of uninitialized value
2
my @a; @a[2] = 'b'; say @a;
Use of uninitialized value
Use of uninitialized value
b
my @a; @a[2] = 'b'; say @a.perl;
[undef, undef, b]
We probably
On Fri Jan 09 14:17:02 2009, masak wrote:
masak rakudo: my Any $x .= new; say $x.values
p6eval rakudo 35320: OUTPUT«Method '!flatten' not found for invocant
of class 'Any' [...]
* masak submits rakudobug
Now fixed in r35392, although I'm not sure what the correct behavior
should be.
$
On Sat Jan 10 07:23:00 2009, pmichaud wrote:
On Sat Jan 10 07:06:01 2009, masak wrote:
The following three correct Perl 6 modules give a runtime error in
Rakudo r35336.
[...]
$ cat URI.pm
use v6;
class URI;
I'm not sure this is legal Perl 6. S11 says that the class Foo;
'(' ~ ')' 'a'* parses and does what I mean, but when I replace the last
term with ['a'*] it fails to parse.
Looks like a bug in PGE's parser, I'll look into this in a day or so.
Thanks,
Pm
On Sat Jan 10 12:19:38 2009, richardh wrote:
Getting a wierd segmentation fault with the following program (also
attached).
I am using rakudo from parrot 35286
[...]
Try running the script using parrot directly instead of the perl6
binary, and let us know if you still see the segfault.
On Tue, Jan 06, 2009 at 02:50:07AM -0800, Carl Mäsak wrote:
Due to the structurally recursive nature of C.perl, the fact that
Rakudo r34997 doesn't give newly defined classes a default C.perl
method upon definition is very keenly felt e.g. when doing C.perl on
a list of instances of the new
On Tue, Jan 06, 2009 at 12:11:28PM -0800, Moritz Lenz wrote:
I know that rakudo doesn't prioritize implementation of the various
quoting constructs, but there are various things that need testing
($*OUT.say, @*ARGS (which seems to be broken atm), command line
switches, things like RT #61980)
On Tue, Jan 06, 2009 at 01:50:06PM -0800, Dave Whipp wrote:
S16 requires that say (and print) when called with no args should
be a compile-time error. Rakudo accepts it with no error.
Since S16 has been in an incomplete draft status for such a long
time, I'd like to get confirmation from p6l
On Sat, Jan 03, 2009 at 09:33:30AM -0800, Carl Mäsak wrote:
eric256 rakudo: my %test = (1 = a b c); my @word = e f g;
(%test{1} X~X @word).perl.say
p6eval rakudo 34889: OUTPUT«[a b ce, a b cf, a b cg]»
eric256 it appears to be stringifying a b c before crossing
it..any idea what i did wrong?
On Fri, Jan 02, 2009 at 01:52:45PM -0800, Todd Hepler wrote:
I think this is a bug, but I'm not sure.
(undef === undef) currently evaluates to false. Seem like it should be
true.
I couldn't find a test for it, so below is a patch to add one.
Before entering a fix for this, I'm curious
On Tue, Dec 30, 2008 at 01:04:58PM -0800, Carl Mäsak wrote:
masak rakudo: my $a = 5; eval 'say $a'
p6eval rakudo 34665: RESULT«Null PMC access in find_method() [...]
* masak submits rakudobug
At the moment eval strings are unable to access their outer lexical
environment -- fixing this will
On Mon Dec 08 10:24:33 2008, ihrd wrote:
Hi!
in 33622:
sub foo (%h) { say %h.perl }; foo({a=1});
{a = 1}
sub foo (%h) { say %h.perl }; foo(1);
1
sub foo (%h) { say %h.perl }; foo(a);
a
This is a problem with parameter passing of arrays and hashes in general
-- the parameter takes on
On Mon Dec 29 08:40:57 2008, masak wrote:
S12:
To declare a lexically scoped class, use my class.
This currently does not work in Rakudo.
Marking ticket as a duplicate of RT #61108.
Pm
On Mon Dec 29 12:49:10 2008, jhorwitz wrote:
assume the following three files:
Bar.pm:
say in Bar.pm;
foo1.p6:
module Foo;
use Bar;
say in Foo;
foo2.p6:
use Bar;
module Foo;
say in Foo;
This second version (foo2.p6) isn't valid Perl 6. Rakudo
On Tue Dec 30 17:46:31 2008, si...@simon-cozens.org wrote:
This causes a null access in PMC, presumably because the eval is
returning the wrong kind of nothing.
This should now be fixed in r34682, assigning to moritz++ so that we can
verify there's a test for it.
Thanks!
Pm
On Wed Dec 24 09:45:58 2008, dwh...@nvidia.com wrote:
Demonstrated by this test:
dwhip rakudo: .say for A B.map: { [ .split() ] }
p6evalirc://freenode/p6eval,isnick rakudo 34338:
OUTPUT«AB»
dwhipp rakudo: .say for A.map: { [ .split() ] }
p6evalirc://freenode/p6eval,isnick rakudo 34338:
Now fixed in r34388:
$ ./parrot perl6.pbc -e '.say for a 1 b 2.map: - $a, $b { $a ~ $b }'
a1
b2
$
Thanks!
Pm
Reopening ticket (and assigning to moritz++) -- we probably need a test
for this somewhere before closing the ticket.
Thanks,
Pm
I had to revert the change that autothreaded infix:===, as the
existing non-autothreaded version was being used to create Junctions
(and resulted in an infinite loop).
I suppose it's also a legitimate question as to whether infix:===
should autothread at all -- i.e., for something like:
my $a
The latter issue is now fixed in r34324:
$ ./parrot perl6.pbc
my @foo = 'AB'.split(''); @foo[0]++; say @foo;
BB
The other issue with match objects depends on how one invokes a named
regex; I'm going to say we don't worry about that until we get a
clarification on the spec.
So, this issue
On Thu Oct 23 07:13:46 2008, pmichaud wrote:
On Wed, Oct 22, 2008 at 08:27:10PM -0700, Tim Nelson via RT wrote:
On Sat Aug 16 07:29:31 2008, je...@perl.org wrote:
- Needs last/redo/next/continue exceptions in PCT (PCT)
This is done in rakudo; does that mean that this ticket is done?
On Thu Oct 23 07:13:46 2008, pmichaud wrote:
On Wed, Oct 22, 2008 at 08:27:10PM -0700, Tim Nelson via RT wrote:
On Sat Aug 16 07:29:31 2008, je...@perl.org wrote:
- Needs last/redo/next/continue exceptions in PCT (PCT)
This is done in rakudo; does that mean that this ticket is done?
Instead of duplicating the method calls, a simpler approach might be
to create a Perl6Env class that has Env and Mapping as parents, then
change %*ENV to create a Perl6Env instead of a Env. This should
cause %*ENV to inherit all of Mapping's methods. (For other examples,
see how Mapping, List,
On Mon Dec 22 09:46:43 2008, cspencer wrote:
The attatched patch lets an infinite Range (ie. (1..Inf)) report its
length as Inf.
It also adds temporary !FAIL cases when an infinite range is converted
into a list or string context.
The patch needs some rework before it can be accepted.
On Sun Dec 21 08:46:48 2008, masak wrote:
pmichaud even so, we don't want the case of my $a = [].min;
if $a 3 { say 'yes'; }
pmichaud because right now +Inf is probably treated as 3
pmichaud rakudo: say +Inf 3;
p6eval rakudo 34203: OUTPUT[1]
* masak submits rakudobug
Now working
On Sun Dec 21 08:26:41 2008, cspencer wrote:
The attached patch fixes the issues below. min/max on an empty list
should now return Inf/-Inf respectively.
Applied in r34214, thanks!
Pm
Now fixed in r34137, thanks!
Pm
On Sun Dec 07 06:46:05 2008, masak wrote:
masak rakudo: class Task {}
[15:39]
p6eval rakudo 33603: OUTPUT[Class Task already registered!current
instr.: '!keyword_class' pc 13963 (src/builtins/guts.pir:352)]
masak thei0s: thanks for that one :)
* masak reports
jnthn masak: Attach
Patch applied in r34162.
Assigning ticket to moritz++; we can close the ticket when we have
confirmation of tests for this feature.
Thanks!
Pm
The basics are indeed working, so I'm closing this ticket for now. When
we have more specific instances of things that need to be fixed we can
handle them then.
Pm
On Sat Dec 20 18:48:57 2008, cspencer wrote:
Possible fix attached (though I'm nowhere near an expert on the
grammar/actions files).
Yes, the fix appears to work (and doesn't cause any failures); now
applied in r34184.
Thanks!
Pm
On Thu, Dec 11, 2008 at 02:28:18PM -0800, Moritz Lenz wrote:
23:27 moritz_ rakudo: my ($x, @y) = a b c d e; say @y.perl
23:27 p6eval rakudo 33813: OUTPUT[b]
so @y gets only the first element, when in fact it should get all the rest.
The problem is that array variables in lists are being
On Fri, Dec 19, 2008 at 09:22:28AM -0800, Eric Hodges wrote:
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61534
I also added tests in revision R24492 file
t/spec/S02-whitespace_and_comments/*_end.t
S26 is somewhat out-of-date in several respects, and C=END
is unfortunately one of
On Sun Dec 14 11:47:58 2008, moritz wrote:
S29 says:
: If all criteria are exhausted when comparing two elements, sort should
: return them in the same relative order they had in @values.
or in terms of computer science, the sort should be stable.
Rakudo r33895 doesn't do this, as a few
On Tue, Dec 16, 2008 at 10:02:23AM -0800, Jeff Horwitz wrote:
# New Ticket Created by Jeff Horwitz
# Please include the string: [perl #61412]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61412
In r33954 this
Applied in r34011, thanks!
Pm
Some transcoding options have been added to HLLCompiler and Rakudo since
this ticket was last addressed... could we determine if this is still an
issue for macosx? If not, I'd like to close the ticket.
Thanks!
Pm
As far as I can tell, this issue was fixed with lexicals (RT #58352), so
I'm marking this ticket resolved. If the issue appears again, please
reopen this ticket or open a new one.
Thanks!
Pm
This looks like a rule invocation bug to me -- if I change the code to
use $str ~~ / A::sp / then it appears to work fine:
$ cat x
grammar A {
token foo { ^ [alnum||sp]+ $ };
token sp { ' ' | \n };
}
say ?( ~~ /A::sp/);
say ?(\n ~~ /A::sp/);
say ?(foo ~~ /A::foo/);
say ?(foo bar ~~
Is t/spec/S29-conversions/ord_and_char.t still failing for anyone? If
not, I'd like to close this ticket.
Pm
If the rule is called correctly it appears to work fine:
$ cat x
grammar Foo {
token foo { 'foo' }
};
grammar Bar is Foo {
token bar { foo | 'bar' }
};
if 'foo' ~~ /Bar::bar/ { 'matched'.say; }
$ ./parrot perl6.pbc x
matched
$
Closing ticket.
Pm
On Mon Dec 15 03:43:26 2008, baest wrote:
Moritz Lenz via RT (09:23 2008-12-14):
Martin Kjeldsen (via RT) wrote:
# New Ticket Created by Martin Kjeldsen
# Please include the string: [perl #61308]
# in the subject line of all future correspondence about this
issue.
# URL:
Now fixed in r33936, thanks!
Pm
On Tue Nov 25 18:21:04 2008, pmichaud wrote:
On Tue, Nov 25, 2008 at 12:36:45PM -0800, Carl Mäsak wrote:
masak rakudo: my $a = 5; $a = [ $a, 6 ]; say $a
p6eval rakudo 33193: OUTPUT[maximum recursion depth
Rakudo doesn't quite know how to interpolate values into lists yet,
or how to
On Wed, Dec 03, 2008 at 12:59:36PM -0800, Carl Mäsak wrote:
masak perl6: my @a = 0 xx 4; @a[0] = 42; say @a.perl
p6eval rakudo 33460: OUTPUT[[42, 42, 42, 42]]
p6eval ..pugs: OUTPUT[\(42, 0, 0, 0)]
p6eval ..elf 24144: OUTPUT[[42,0,0,0]]
moritz_ jnthn: right
jnthn masak: Oooh, that's a good
On Wed, Dec 03, 2008 at 03:54:16PM -0800, Carl Mäsak wrote:
# New Ticket Created by Carl Mäsak
# Please include the string: [perl #61034]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61034
Rakudo r33458:
On Tue, Dec 02, 2008 at 02:08:08AM +0300, ruslan usifov wrote:
sub test(@test is copy, $as)
{
@test[0] = 123;
};
my @test = (1, 2, 3, 4);
test(@test);
print @test[0];
After that perl6.exe will produce:
too few arguments passed (1) - 2 params expected
Rakudo is correct here --
On Mon, Dec 01, 2008 at 04:25:19AM -0800, [EMAIL PROTECTED] (via RT) wrote:
Rakudo as of r33417 fails t/spec/S12-methods/default-trait.t and
t/spec/S12-methods/multi.t:
I think this problem is very likely related to RT #60910, as
t/spec/S12-methods/multi.t works fine in r33248 and r33385
but
Just a note that I expect we will fix this when we implement
slicing and the postcircumfix: methods.
Pm
Now fixed in r33193:
$ cat 55612
sub times($a,$b) {
$a * $b;
};
sub divide($a,$b) {
$a / $b;
}
sub make_op($op) {
sub($a,$b) { $op($a,$b) }
};
my $t = make_op(times);
say $t(21,2);
my $div = make_op(divide);
say $div(42,2);
$ ./parrot perl6.pbc 55612
42
21
$
Thanks,
Pm
Now fixed in r33193:
$ cat 58392
sub f($l) {
return() if $l = 0;
say entering $l;
for 1..3 {
f($l-1);
say looping in $l;
}
}
f(2);
$ ./parrot perl6.pbc 58392
entering 2
entering 1
looping in 1
looping in 1
looping in 1
looping in 2
entering 1
looping in 1
looping
Now fixed in r33193:
$ cat 59082
my $max = 13;
cl() for 1..2; # print only \n!
cl(); # print 13
sub cl { $max.say };
$ ./parrot perl6.pbc 59082
13
13
13
$
Thanks,
Pm
Removed workaround in r33203, thanks!
Pm
On Thu Nov 20 19:59:03 2008, [EMAIL PROTECTED] wrote:
This code works in Rakudo rev 32970:
grammar GrammarOne { token foo { 'foo' }; }
grammar GrammarTwo { token foobar { GrammarOne::foo 'bar' }; }
'foobar' ~~ GrammarTwo::foobar or die 'failed one-level namespace
grammar';
But
On Wed, Nov 19, 2008 at 07:23:38AM -0800, Carl Mäsak wrote:
Rakudo r32873 cannot parse the Unicode version of Texas quotes («»),
and misunderstands the ASCII-friendly variant ().
$ ./perl6 -e 'say a $b c.perl'
[a, \$b, c]
$ ./perl6 -e 'my $b = foo; say a $b c.perl'
1
$ ./perl6 -e 'my $b =
Is this still an issue?
If so, can we enumerate the exact things we want this ticket to address?
Pm
On Fri, Sep 26, 2008 at 02:55:36AM -0700, Carl Mäsak wrote:
Rakudo r31409 assumes that all flags that it hasn't heard about are
program files.
$ ./perl6 --help
./perl6
Usage: perl6 [switches] [--] [programfile] [arguments]
[...]
$ ./perl6 --kelp # a kind of seaweed
Error: file cannot be
On Tue, Nov 25, 2008 at 12:36:45PM -0800, Carl Mäsak wrote:
masak rakudo: my $a = 5; $a = [ $a, 6 ]; say $a
p6eval rakudo 33193: OUTPUT[maximum recursion depth exceededcurrent
instr.: 'parrot;List;get_string' pc 2808 (src/gen_builtins.pir:1885)]
masak jnthn: I think you should see this.
# New Ticket Created by Patrick R. Michaud
# Please include the string: [perl #60784]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60784
Currently we have at least three test files dealing with
subset and subtypes
On Mon, Nov 17, 2008 at 11:06:26PM -0600, Chris Dolan wrote:
Patrick has mentioned several times that the proper solution to the
problem is a representation of the high-level language that PGE can
interact with. My thoughts about that HLL mapping:
1) we should invoke the other language's
On Mon, Nov 17, 2008 at 12:53:47PM -0800, Moritz Lenz wrote:
Latest rakudo (r32779) dies on t/spec/S03-operators/increment.t:
$ TEST_JOBS=1 make t/spec/S03-operators/increment.t
t/spec/S03-operators/increment.rakudo
1..41
ok 1 - var incremented after post-autoincrement # TODO detect
On Sun, Nov 16, 2008 at 01:23:28AM -0800, Ilya Belikin wrote:
Hi!
example:
sub bar (@ar, :$a) { ... }
bar(); #too few arguments passed (0) - 4 params expected
If signature without named args, all right.
Jonathan and I have confirmed that this is indeed a bug
in error reporting, but we
On Mon Nov 17 01:51:40 2008, ihrd wrote:
Hi!
I start that message like bug report, but I have doubt.
example:
class A {
method foo (@a) {
@a.grep: { say @a }; # just for example, real code not so
pointless
}
}
my $o = A.new;
$o.foo(['foo']); # foo
$o.foo([1, 2]);
301 - 400 of 601 matches
Mail list logo