Re: [perl #133541] Grammer bug vs

2018-09-28 Thread Patrick R. Michaud via RT
The issue doesn't seem to be the underscore, because I get the same result even when converting the underscore into a letter ('b'): $ cat gentb.p6 grammar G0 { token TOP {|.*} regex rport { } rule ruport { } #token type {+} token type {+} } grammar G1 {

Re: [perl #132066] [BUG] Code blocks cause backtracking fail in `|` alternation with ratcheting

2017-09-11 Thread Patrick R. Michaud via RT
On Mon, Sep 11, 2017 at 09:48:01AM -0700, Dan Zwell wrote: > > `|` matches the longest input: > > 'ab' ~~ / ^:ratchet [ . | .. ] $ / > 「ab」 > > If the regex contains empty code blocks, backtracking fails: > > 'ab' ~~ / ^:ratchet [ {}. | {}.. ] $ / > Nil Isn't the whole point of :ratchet to turn

Re: [perl #131708] [BUILD]. Rakudo Star build instructions incomplete

2017-07-05 Thread Patrick R. Michaud via RT
On Wed, Jul 05, 2017 at 06:10:42PM -0700, Will Coleda via RT wrote: > On Wed, 05 Jul 2017 09:16:44 -0700, tbrowder wrote: > > Given this invocation for a new installation of rakudo: > > > > perl Configure.pl --backend=moar --gen-moar --prefix=/some/dir > > > > /some/dir needs to exist and belo

Re: [perl #129346] [BUG] Whatever being called on where-blocked subroutine cannot handle the sigilless values correctly

2016-09-24 Thread Patrick R. Michaud via RT
On Sat, Sep 24, 2016 at 07:37:52AM +, Lloyd Fournier wrote: > I think this is because .WHAT is a special case. It's not really a method > which is what you need to make *.method work. *.WHAT will always return > (Whatever) immediately. You're correct that .WHAT is a special case. From S12, "I

Re: [perl #128584] [BUG] reduce subroutine returns NaN when calculating decimals with negative exponents

2016-07-09 Thread Patrick R. Michaud via RT
On Sat, Jul 09, 2016 at 05:19:49AM -0700, Itsuki Toyota wrote: > See the following results > > $ perl6 -e 'say -1 ** -0.1' > -1 > $ perl6 -e 'say reduce * ** *, -1, (-0.1)' > NaN This is not a bug in "reduce" itself. Exponentiation has higher precedence than unary minus, so the first expression

[perl #122882] [BUG] Symmetric set difference (^) doesn't right-associate or chain in Rakudo

2014-10-02 Thread Patrick R. Michaud via RT
Added tests in roast/S03-operators/set.t, marking ticket resolved. Pm

[perl #119875] [BUG] term:<^^> doesn't consider a last empty line as a line in regexes in Rakudo

2013-09-18 Thread Patrick R. Michaud via RT
S05:792 mentions this case explicitly: ^^ always matches the beginning of the string and after any \n that is not the final character in the string. So, rakudo is performing exactly as specced. I suspect the reason behind the spec is so that slurped \n-terminated files (i.e., the vast m

[perl #118541] $ context specifier

2013-06-19 Thread Patrick R. Michaud via RT
The wikibooks example is wrong, Rakudo is correct here. (To return the number of elements, use prefix:<+>, not the $- contextualizer.) Actually, that whole section in wikibooks seems to be a little "off"... "@()" doesn't mean "convert to array", for example. Closing ticket. Pm

[perl #118479] Untyped hashes are considered to be {Str}, but act differently from hashes typed with {Str}

2013-06-14 Thread Patrick R. Michaud via RT
> So either STORE_AT_KEY for typed hashes should stringify objects >silently if the keytype is Str, like untyped hashes do. Or untyped >hashes should *not* automatically stringify objects. Untyped hashes are {Str(Any)} -- see S09:1187: The standard Hash: my %hash; is real

[perl #91728] Rakudo includes an internal Parrot header file, parrot/parrot.h

2013-05-26 Thread Patrick R. Michaud via RT
I'm wondering if this ticket can be marked "resolved" -- see https://github.com/parrot/parrot/issues/365 . The gist of #365 seems to be that parrot.h is no longer considered an internal Parrot header file... but I'm not sure I'm reading it correctly. In particular, the parrot.h file itself n

[perl #118179] FIRST doesn't see lexicals from surrounding block

2013-05-25 Thread Patrick R. Michaud via RT
On Sat May 25 21:13:26 2013, coke wrote: > 23:54 < [Coke]> r: for 1..10 { my $a = 3; FIRST { say $a} } > 23:54 <+camelia> rakudo 45ae2d: OUTPUT«(Any)␤» > > I would expect that to output "3". > Since the FIRST block is invoked before the assignment/initialization, the output of "Any" seems corr

[perl #117923] [BUG] can not augment List class

2013-05-11 Thread Patrick R. Michaud via RT
Now fixed in b1695cf: pmichaud@kiwi:~/p6/rakudo$ cat x.p6 use MONKEY_TYPING; augment class List { proto method combinations(|) { * } } pmichaud@kiwi:~/p6/rakudo$ ./perl6 x.p6 pmichaud@kiwi:~/p6/rakudo$ Ticket closable with tests (hint: test that List.sink doesn't fail). Pm

[perl #117923] [BUG] can not augment List class

2013-05-11 Thread Patrick R. Michaud via RT
On Wed May 08 18:16:40 2013, grond...@yahoo.fr wrote: > This is perl6 version 2013.04-55-gfe70494 built on parrot 5.2.0 > revision RELEASE_5_2_0 > > > use MONKEY_TYPING; > augment class List { proto method combinations(|) {*} } > > > Cannot look up attributes in a type object It works for me i

[perl #117875] Smartmatching ints against Enumeration Types fails (probably NYI)

2013-05-06 Thread Patrick R. Michaud via RT
Resolved via a change to S12, see https://github.com/perl6/specs/commit/bff62668057bf3f87a6f80f33d088d47a1d 4eda2 . Pm

[perl #117831] [BUG] Grammar capture of '%' separator

2013-05-03 Thread Patrick R. Michaud via RT
Now fixed in 4741028: pmichaud@kiwi:~/p6/rakudo$ cat g.pl grammar G { token TOP { +% } token letter{<[a..z]>} token sep{\,} } say G.parse("a,b,c,d").caps.map({$_.value}); pmichaud@kiwi:~/p6/rakudo$ ./perl6 g.pl a , b , c , d pmichaud@ki

Re: [perl #116897] while (...splice...) runs forever

2013-02-25 Thread Patrick R. Michaud via RT
On Thu, Feb 21, 2013 at 09:07:44AM -0800, Ricardo SIGNES wrote: > This program never terminates: > > use v6; > > my @a = << >>; > while (my @c = splice @a, 0, 3) { > say "one more"; > } After each splice, @c ends up being @(Any, Any, Any). I'm not sure if this is correct; I can see

[perl #64768] [TODO] Whatever globbing in chained hash indexing

2012-07-08 Thread Patrick R. Michaud via RT
After thinking about this a bit, I'm inclined to disagree with the original ticket. my %h = 'foo' => [1,2,3], 'bar' => [4,5,6]; If %h{*} is analogous to @array[*], then it returns a list (slice) of all of the elements of %h. The .[1] should then return the second element of this slice, wh

[perl #113804] [BUG] Can't flatten Range into a list of arguments in Rakudo

2012-06-23 Thread Patrick R. Michaud via RT
Now fixed in 690d774; needs spectests to close ticket. Thanks! Pm

[perl #113026] array iterator does not track a growing array

2012-05-21 Thread Patrick R. Michaud via RT
I suspect this bug may be related to #112716 (https://rt.perl.org/rt3/Ticket/Display.html?id=112716); the .map() operation (which 'for' uses) tends to be a bit too eager in evaluating its invocant list. I've taken both bugs and will work on a fix shortly. Pm

[perl #111286] [BUG] Name capture happens in the presence of a quantifier but not in its absence in Rakudo

2012-05-17 Thread Patrick R. Michaud via RT
Now fixed in 0ed00f0 probably needs spectests to close ticket. Thanks! Pm

[perl #112696] [BUG] [|] 1..5 should give a flat any(1..5) junction, not nested junctions in Rakudo

2012-05-03 Thread Patrick R. Michaud via RT
Now fixed in 7eae9b2: pmichaud@kiwi:~/p6/rakudo$ ./perl6 > say ([|] 1..5).perl any(1, 2, 3, 4, 5) Ticket can be closed with appropriate spectests. Pm

[perl #112364] [TODO] Parse Foo:: correctly in Rakudo

2012-04-20 Thread Patrick R. Michaud via RT
Now fixed in 84f4fd4: > class ABC { our sub xyz() { 'xyz' } }; say ABC::.WHAT Stash() This ticket can be closed with sufficient spectests. Pm

[perl #112362] [BUG] Items which are arrays mistakenly give slices in hash or array lookup in Rakudo

2012-04-09 Thread Patrick R. Michaud via RT
Now fixed in 2c9f46f. Needs spectests to close ticket. Thanks, Pm

[perl #112216] slicing a string with inifinite ranges gives LTA error message

2012-04-03 Thread Patrick R. Michaud via RT
On Tue Apr 03 01:24:47 2012, moritz wrote: > 10:23 < timotimo> r: say "foo"[1..*] > 10:23 <+p6eval> rakudo 8ead1e: OUTPUT«Method 'gimme' not found for > invocant of > class 'Str'␤ in method postcircumfix:<[ ]> at > src/gen/CORE.setting:1147␤ in block at >

[perl #111978] [BUG] ?^1 gives True in Rakudo

2012-03-25 Thread Patrick R. Michaud via RT
Now fixed in b1acd74. Needs spectest coverage to close ticket. Thanks! Pm

[perl #111646] Arity counting mis-treats slurpy and capture parameters

2012-03-23 Thread Patrick R. Michaud via RT
Now fixed in 69920db585. > say &infix:<~>.arity 0 > say &infix:<~>.count Inf > say .reduce(&infix:<~>) abcd Ticket can be closed when we have appropriate spectests. Thanks! Pm

[perl #111848] [BUG] The storage strategy for arrays is weird in Rakudo

2012-03-19 Thread Patrick R. Michaud via RT
The speed of Array vs. Hash element access is partially addressed by commit c10792f8. Before this commit, each Array element access via .at_pos($pos) resulted in an expensive call to self.exists($pos) for each access, whereas Hash element accesses via .at_key($key) were able to use nqp::exists

[perl #68518] [BUG] Null PMC access when not finding the ICU library inside a try block in Rakudo

2011-10-14 Thread Patrick R. Michaud via RT
> It would be helpful if someone (not necessarily the original poster) > provided a recipe to build a perl6 without ICU so this bug can be tested > against a recent version. The following should work: perl Configure.pl --gen-parrot --parrot-option="--without-icu" Pm

[perl #98790] [BUG] Expressions involving two sequence operators time out or give a spurious error in Rakudo

2011-09-09 Thread Patrick R. Michaud via RT
Now fixed in f9d94fe. There were already todo'd tests for this bug in spectests, they're now un-todo'd and marked with this ticket number. Thanks for the report, closing ticket! Pm

[perl #98678] [BUG] LTA error message when providing a non-recognized seed to the sequence operator in Rakudo

2011-09-09 Thread Patrick R. Michaud via RT
Now fixed in (nom) 5d26134. Need a spectest and then we can close this ticket. Pm

[perl #96424] NULL PMC on unmatched or non existent named capture

2011-08-07 Thread Patrick R. Michaud via RT
On Sun Aug 07 12:25:15 2011, ronaldxs wrote: > Seems at least partially fixed in nom but still may be related concerns > like > > nom: my $m = '34' ~~ /+|+/; say $m.perl; say > Nil.perl; my $x = $m // 4; say 'x is ', $x > nom: OUTPUT«()␤Nil␤x is ␤» > > See http://irclog.perlgeek.de/perl6/2011-

[perl #78284] [BUG] Neither .item nor $(...) make a List stop behaving as a list in Rakudo

2010-10-08 Thread Patrick R. Michaud via RT
Now fixed in 5ce8fcf: > sub f { 1, 2, 4 }; .say for f.item 1 2 4 > sub f { 1, 2, 4 }; .say for $(f) 1 2 4 However, the fix exposes a problem with either .trans or trans.t, so this ticket isn't quite closable yet. (And we need a spectest for it.) Pm

[perl #77864] [BUG] Unhelpful error messages instead of DWIM when doing &&= or ?&= or ?|= or ?^= on an undefined variable in the rhs in Rakudo

2010-09-19 Thread Patrick R. Michaud via RT
On Sat Sep 18 10:55:52 2010, moritz wrote: > Basic tests added to S03-operators/short-circuit.t. > > 19:52 < moritz_> rakudo: my $x; $x &&= 5; say $x > 19:52 <+p6eval> rakudo a204ba: OUTPUT«5␤» > 19:52 < moritz_> somebody please confirm that this is wrong > ... > 19:53 < jnthn> moritz_: Looks wron

[perl #57790] [LHF] nicer error message for 12345[1] (number scalar indexed with .[])

2010-09-16 Thread Patrick R. Michaud via RT
I'm fairly certain that Rakudo's current behavior (returning a Failure for indexes other than zero) is correct here. Switching "fail" to "die" is definitely not correct. I'm declaring this ticket "fixed" and can be resolved when we have spectests verifying that the non-zero indexes return a Failu

[perl #77888] [BUG] chr() returns something that is not a string of characters, and say/print outputs it as bytes in Rakudo

2010-09-16 Thread Patrick R. Michaud via RT
Now fixed in 760c734: pmich...@plum:~/rakudo$ ./perl6 > print .chr for <233 186 166 233 171 152>; 麦é«> The TT #1793 ticket turned out to be a non-bug; the problem was in Rakudo's setup of $*IN, $*OUT, and $*ERR. I'm not sure how the current test suite would be able to test this particul

[perl #77232] [BUG] Binary bitshift operators infix:<< +< >> and infix:<< +> >> have too loose a priority in Rakudo

2010-08-16 Thread Patrick R. Michaud via RT
Now fixed in 2f18a49, tests added to t/spec/S03-operators/bit.t . Resolving ticket, thanks! Pm

[perl #77072] [BUG] @a[*] does not work as slice of all indexes

2010-08-07 Thread Patrick R. Michaud via RT
Now fixed in fca2d3. There's already a spectest for the test, but I'm unable to commit spectest changes at the moment so I'll leave the ticket open for someone else to close. I also fixed .{*} in this patch, it probably needs tests as well. Pm

[perl #77054] rakudo doesn't like explicit $_ in multi-param signatures

2010-08-07 Thread Patrick R. Michaud via RT
On Fri Aug 06 12:56:24 2010, moritz wrote: > 21:53 < moritz_> rakudo: for .kv -> $k, $_ { .perl.say } > 21:53 <+p6eval> rakudo 0e5edb: OUTPUT«0␤1␤» > 21:53 < moritz_> huh. > 21:54 < moritz_> shouldn't that be "a", "b" ? > 21:54 < moritz_> rakudo: for .kv -> $k, $v { $v.perl.say } > 21:54 <+p6eval>

[perl #76994] [BUG] Bare 'i' not recognised as a Complex()

2010-08-05 Thread Patrick R. Michaud via RT
Now fixed in b627e33. Assigning to moritz for spectest verification. Thanks! Pm

[perl #65994] Fakexecutable is not working anymore in latest rakudo/parrot

2010-08-03 Thread Patrick R. Michaud via RT
Now working in 51cc37: pmich...@plum:~/rakudo$ ./perl6 --target=PIR hello.p6 >hello.pir pmich...@plum:~/rakudo$ parrot_install/bin/parrot -o hello.pbc hello.pir pmich...@plum:~/rakudo$ parrot_install/bin/pbc_to_exe hello.pbc cc -o hello.o -I/home/pmichaud/rakudo/parrot_install/include/2.6.0-devel

[perl #65994] Fakexecutable is not working anymore in latest rakudo/parrot

2010-08-03 Thread Patrick R. Michaud via RT
Now working in 51cc37: pmich...@plum:~/rakudo$ ./perl6 --target=PIR hello.p6 >hello.pir pmich...@plum:~/rakudo$ parrot_install/bin/parrot -o hello.pbc hello.pir pmich...@plum:~/rakudo$ parrot_install/bin/pbc_to_exe hello.pbc cc -o hello.o -I/home/pmichaud/rakudo/parrot_install/include/2.6.0-devel

[perl #71362] [BUG] Parrot string indexing semantics leaks through when accessing $1 et al. when $/ contains a Str in Rakudo

2010-07-28 Thread Patrick R. Michaud via RT
> new error: > > > my $a = 'abc'; say $a[1]; > ===SORRY!=== > .[1] out of range for type Str() > I believe this is the correct behavior per the specification. Pm

[perl #73888] [BUG] %*VM doesn't work anymore in Rakudo

2010-07-28 Thread Patrick R. Michaud via RT
The spec changed to use $*VM, and Rakudo now implements that. > say $*VM /home/pmichaud/rakudo/parrot_install/bin > Pm

[perl #73608] [BUG] Rakudo (nqp-rx) regexes won't backtrack properly into capturing parentheses or subrules

2010-07-19 Thread Patrick R. Michaud via RT
Now fixed in 9005478: pmich...@plum:~/rakudo$ ./perl6 > say "b" ~~ /(.*)b/; b > say "ab" ~~ / (ab|a) b /; ab > grammar G { regex TOP { a }; regex foo { a* } }; say ?G.parse("aaa"); 1 > Pm

[perl #76242] [BUG] Double layers of array when binding an Array in a scalar variable to an 'is copy' array variable in Rakudo

2010-06-28 Thread Patrick R. Michaud via RT
Now fixed in c18d372. Assigning to moritz++ for spectest coverage. Thanks! Pm

[perl #76238] Bool.pick always returns false.

2010-06-28 Thread Patrick R. Michaud via RT
On Mon Jun 28 04:49:23 2010, lemb...@wrkhors.com wrote: > Using the June release: > > $ perl6 --version > This compiler is built with the Parrot Compiler Toolkit, parrot > revision 47640. > > Attempting to print some random numers via Bool.pick > gives no output: For a wide variety of reasons, R

[perl #75956] [BUG] @*INC isn't writable in Rakudo

2010-06-27 Thread Patrick R. Michaud via RT
Now fixed in current Rakudo, assigning to moritz for spectest coverage. Pm

[perl #76174] [Bug] non-modifier form of 'if' within 'for' loop fails, while the modifier form works

2010-06-27 Thread Patrick R. Michaud via RT
On Sun Jun 27 14:16:46 2010, pkailasa wrote: > # this fails > >> perl6 -e 'my @a = 0, 1, 2; for @a { if $_ { $_++ } }; say @a.perl' > [0, 1, 2] It now works in current Rakudo: pmich...@plum:~/rakudo$ cat x my @a = 0, 1, 2; for @a { if $_ { $_++ } }; say @a.perl; pmich...@plum:

[perl #71462] [BUG] Smartmatching against a type yields an Int, not a Bool in Rakudo

2010-06-26 Thread Patrick R. Michaud via RT
Now fixed in a579f8e. Closing ticket. Pm

[perl #73772] [BUG] Rakudo returns the wrong thing from a <> quote with only whitespace in it

2010-06-06 Thread Patrick R. Michaud via RT
Now fixed in 841262f. Assigning to moritz++ for test verification to close ticket. Pm

[perl #74050] bogus hash vs. block distinction.

2010-06-06 Thread Patrick R. Michaud via RT
Now fixed in 06723b4... assigning to moritz++ for test verification and unfudging. Pm

[perl #75524] [BUG] Creating $n regexes in a loop returns the last one $n times

2010-06-02 Thread Patrick R. Michaud via RT
On Wed Jun 02 14:50:54 2010, david.gr...@telus.net wrote: > Creating several regexes should return several different objects: > > say /@_[0]/, /@_[1]/, /@_[2]/ given > _block27 _block35 _block43 > > > However, inside a loop, instead of different regexes, the final one > gets repeated: >

[perl #72286] [BUG] 'self' is writable in Rakudo

2010-02-26 Thread Patrick R. Michaud via RT
In the new master branch, self is no longer writable. I don't know if we need a test for this ticket before closing it (I suspect we do). Pm

[perl #72816] [BUG] Cannot assign to an undeclared dynamic variable in Rakudo

2010-02-26 Thread Patrick R. Michaud via RT
An undeclared dynamic variable currently results in a failure; attempting to assign to that failure produces the readonly message. Perhaps assignment to a failure should throw its exception? Pm

[perl #72872] [TODO] Implement 'eqv' for Mu in Rakudo

2010-02-26 Thread Patrick R. Michaud via RT
Now fixed in 12ea7b9: > say (my $a eqv $a); 1 > say Mu eqv Mu 1 Need to verify we have tests for this. Pm

[perl #73076] [BUG] Can't refer to &infix:<+> in Rakudo

2010-02-26 Thread Patrick R. Michaud via RT
Now fixed in 4ab4b8. Probably needs a test before we can resolve the ticket. Pm

[perl #73094] [BUG] The type of an undefined untyped variable should be Any in Rakudo

2010-02-26 Thread Patrick R. Michaud via RT
Now fixed in c495888. Closing ticket. Pm

[perl #73136] [BUG] The spaces aren't trimmed in the <> construct in Rakudo

2010-02-26 Thread Patrick R. Michaud via RT
Now fixed in fad9447. Need to verify existence of a spectest for this and then the ticket can be closed. Pm

[perl #72972] [BUG] False ~~ True in Rakudo

2010-02-22 Thread Patrick R. Michaud via RT
Marking ticket as resolved, as Rakudo currently matches the specification. Pm

[perl #65640] Defining an operator as a multi and then calling it causes a Null PMC access in Rakudo

2009-08-27 Thread Patrick R. Michaud via RT
Now fixed in 3a274d9. We probably need a spectest in order to close the ticket. Thanks! Pm

[perl #68664] [BUG] Null PMC access in find_method() for infix:<+>

2009-08-27 Thread Patrick R. Michaud via RT
Now fixed in f351f60: $ cat x class A { has $.a is rw; method add(A $b) { $.a ~ $b.a } } multi sub infix:<+>(A $a, A $b) { $a.add($b) }; my A $a .= new(a=>'foo'); my A $b .= new(a=>'bar'); say $a.a ~ $b.a; say $a + $b; $ ./perl6 x foobar foobar $ Assigning to moritz++ so that we can

[perl #68356] [BUG] .kv problems in Rakudo

2009-08-10 Thread Patrick R. Michaud via RT
On Sun Aug 09 14:56:24 2009, moritz wrote: > It seems that the :foo[...] colonpair syntax doesn't set up the array > sufficiently non-flattening: Correct, Rakudo doesn't handle the non-paren colonpair syntaxes yet (they were recently refactored in STD.pm and haven't caught up). This ticket is rea

[perl #67450] [BUG] .[+*] seems to be incorrect

2009-08-09 Thread Patrick R. Michaud via RT
On Sat Jul 11 06:57:11 2009, richardh wrote: > perl6 > > my @x=1,2,3,4; my @z; for @x { @z[+*] = $_ }; @z.perl.say > [4] > > my @x=1,2,3,4; my @z; for @x { @z...@z] = $_ }; @z.perl.say > [1,2,3,4] Now fixed in f48920, thanks! $ ./perl6 > my @x = 1,2,3,4; my @z; for @x { @z[+*] = $_ }; @z.

[perl #68004] +* does not generate Code

2009-08-09 Thread Patrick R. Michaud via RT
On Wed Jul 29 05:30:51 2009, colo...@gmail.com wrote: > According to http://perlcabal.org/syn/S03.html#Nesting_of_metaoperators > +* should generate a closure which numifies. This does not work, as > > my $x = +*; > isa_ok $x, Code, '+* is of type Code'; > > fails, as do attempts to use

[perl #68142] [BUG] Junctions shouldn't autothread over slurpy params

2009-08-02 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #68142] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68142 > S09:1043 says that junctions passed as components of a slurpy array or hash do not

[perl #68140] Less than awesome error message for nonexistent script

2009-08-02 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #68140] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68140 > 01:38 my $out = open "02.pl", :w or die "Unable to open 02.pl: $!\n"; 01:39 Wor

[perl #66560] #line directives in src/pmc confuse Sun's compiler.

2009-07-29 Thread Patrick R. Michaud via RT
> Yes, it's still there. It's the 'cd' at the beginning of this line: > > cd $(PMC_DIR) && $(CC) -c $(CINCLUDES) $(CFLAGS) *.c > > If memory serves, parrot doesn't change directories like that. > Instead, it sets > the output location directly, with something like > > $(CC) -c $(CIN

[perl #63360] [PATCH] Update configure script and makefiles for installed Parrot

2009-07-29 Thread Patrick R. Michaud via RT
On Tue Jul 28 19:03:45 2009, wayland wrote: > Attached patch is updated according to pmichauds comments on IRC recently. Patch applied to ins2 branch in ce21ff. As soon as we get the Sun compiler issues resolved (RT #66560) I think we may be able to merge to trunk and close this ticket. Pm

[perl #66560] #line directives in src/pmc confuse Sun's compiler.

2009-07-24 Thread Patrick R. Michaud via RT
On Fri Jun 12 13:42:59 2009, doughera wrote: > Trying a build with the rakudo "ins" branch today on OpenSolaris/x86 >with > Sun's compiler, I hit the following error: > > [...] > "./src/pmc/p6invocation.pmc", line 22: cannot find include file: >"pmc_perl6multisub.h" > cc: acomp failed for

[perl #66574] [BUG] inc branch: make perl6 fails, parrot-includes aren't passed to $(CC)

2009-07-24 Thread Patrick R. Michaud via RT
On Sat Jun 13 19:07:16 2009, ing...@exherbo.org wrote: > This is using Rakudo's inc branch, building against parrot trunk, >r39541. > > Seems to work fine up until it tries to build the perl6 executable. > When building the perl6 executable, $(CINCLUDES) isn't passed to the >compiler, > as

[perl #66558] Re: $(LD_OUT) can't have a space after it for MS linking.

2009-07-24 Thread Patrick R. Michaud via RT
On Fri Jun 12 11:36:31 2009, doughera wrote: > In the 'ins' branch, build/Makefile.in looks like it's heading down the > same wrong road as parrot. See parrot's TT #700 for more details and a > patch for parrot. I'd suggest a similar approach for rakudo. > > The problem is that while MS forbid

[perl #67866] [BUG] Error with stringifying .WHAT on any junctions

2009-07-24 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #67866] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=67866 > 19:37 rakudo: say any("foo","bar").WHAT 19:37 rakudo dd5767: OUTPUT«Null PMC ac

[perl #63894] A returned () is a Nil but doesn't smartmatch against one

2009-07-16 Thread Patrick R. Michaud via RT
On Sun Mar 15 08:36:42 2009, masak wrote: > rakudo: sub foo { return }; say foo.WHAT; say ?(foo ~~ Nil) > rakudo 5b1ff9: OUTPUT«Nil␤0␤» > * masak submits > > Expected behavior: a "Nil" and a 1. Or an explanation about why a > value shouldn't smartmatch successfully against its own type. Note th

[perl #58290] [spec] define meaning of in S05

2009-06-30 Thread Patrick R. Michaud via RT
I've changed this ticket to indicate that it's waiting on spec clarification as to the exact meaning of in regexes. Pm

[perl #66818] Inconsistent behaviour when iterating over %*VM.kv

2009-06-30 Thread Patrick R. Michaud via RT
On Sun Jun 21 10:44:43 2009, moritz wrote: > iterating over $*VM.kv shows more than one key: > > $ perl6 -e 'my $keys = 0; for %*VM.kv -> $k, $v { $keys++}; say $keys' > 141 > > Somehow the inner hash is flattened. Using a normal hash I couldn't > reproduce > this behaviour. Now fixed in 6c6299f

[perl #66840] [BUG] rakudo dies when Ternary Error occurs

2009-06-30 Thread Patrick R. Michaud via RT
On Sun Jun 21 23:57:17 2009, amoc wrote: > : bash$ perl6 > : > 1 ?? 1,2 !! 3,4 > : Ternary error > : bash$ > > this is not wrong as infix:<,> has looser precedence than the ternary > operator( ?? !! ) > but when ternary error occurs, the program emits the error and dies. > > should provide the pr

[perl #66928] [BUG] Null PMC access when doing .WHAT on a built-in infix op in Rakudo

2009-06-30 Thread Patrick R. Michaud via RT
On Tue Jun 30 18:47:59 2009, KyleHa wrote: > I've written a test for this in S12-methods/what.t in r27345. Thanks! Closing ticket! Pm

[perl #66928] [BUG] Null PMC access when doing .WHAT on a built-in infix op in Rakudo

2009-06-30 Thread Patrick R. Michaud via RT
Now fixed in ee1fd13: $ ./perl6 > say &infix:<+>.WHAT Multi() Assigning to moritz++ for spectest coverage, if needed. Pm

[perl #60142] A line-counting program in Rakudo reports one more line than wc

2009-06-30 Thread Patrick R. Michaud via RT
On Sun Oct 26 12:27:26 2008, masak wrote: > Rakudo r32151 contains a bug which makes it "read" a nonexistent blank > line at the end of files. > > $ wc README | awk '{ print $1 }' > 102 > > $ =$*IN; }; say $l' > 103 IO.pod:1207 claims that "IO.eof" is gone, to be replaced with C. But I can't s

[perl #66996] [BUG] Null PMC access when Rakudo tries to parse :colonpair[] with empty list

2009-06-30 Thread Patrick R. Michaud via RT
On Fri Jun 26 07:56:40 2009, masak wrote: > rakudo: my $a = :x[] > rakudo 6c43f9: OUTPUT«Null PMC access in find_method() [...] > * masak submits rakuodbug > rakudo: :x[] > rakudo 6c43f9: OUTPUT«Null PMC access in find_method() [...] What should $a contain in the above case? I.e., what's the

[perl #66640] [BUG] minmax operator not working yet

2009-06-30 Thread Patrick R. Michaud via RT
The infix: operator has now been added in Rakudo a4978b9, with a test added to t/spec/S03-operator/misc.t in r27322. Closing ticket, Pm

[perl #66624] [BUG] Bogus unthrown exception when using 'index' on non-substring in Rakudo

2009-06-30 Thread Patrick R. Michaud via RT
Rakudo 95a2c4f now gives a more useful error message when returning the failure for not finding a given substring: pmich...@orange:~/rakudo$ ./perl6 > say index "abcd", "x" Substring 'x' not found in 'abcd' Closing ticket, thanks! Pm

[perl #66826] [BUG] implementing an operator in the setting causes Null PMC access in find_method()

2009-06-30 Thread Patrick R. Michaud via RT
Now fixed in e0a9d86, and we now have several operators being defined in the setting (along with tests using those operators). Closing ticket, thanks! Pm

[perl #67046] [PATCH] - implemented: "not" "Object"'s method, and "sign" "Num"'s method

2009-06-30 Thread Patrick R. Michaud via RT
On Mon Jun 29 00:36:42 2009, fernandocor...@gmail.com wrote: > implemented: > - "not" "Object"'s method > - "sign" "Num"'s method > > Thats my first time to send a patch, I don't know if its OK, but I really > want to help. Thank you for the patches! However, they may need some refactoring (or

[perl #66620] [BUG] t/spec/S10-packages/basic.rakudo gives a Parrot backtrace in Rakudo

2009-06-25 Thread Patrick R. Michaud via RT
This is a Parrot bug. Recently the Parrot team have been working to clean up memory leaks in context handling, and as a result we're starting to see "double free" errors on exit again. Running Rakudo with Parrot's -G flag avoids the backtrace. I'll leave this ticket open for now but mark it as "

[perl #66640] [BUG] minmax operator not working yet

2009-06-25 Thread Patrick R. Michaud via RT
On Tue Jun 16 10:14:11 2009, richardh wrote: > my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl While rakudo doesn't implement infix: yet, the operator is constrained to having two elements on either side, so the above code wouldn't work anyway. It would be good to have some tests for infix:

[perl #66050] Can't exit REPL with exit; or EOF

2009-06-25 Thread Patrick R. Michaud via RT
This was caused by a bug in Parrot; the problem in Parrot seems to have been resolved and now EOF appears to work again. Closing ticket, thanks! Pm

[perl #65546] No STDOUT output

2009-06-25 Thread Patrick R. Michaud via RT
I don't have any idea where the problem might be; since the Rakudo team doesn't build the packages you installed I'm not quite sure where to being troubleshooting. I suggest contacting the packager who put together the binaries; try with the latest Rakudo release; or see if you can build Rakudo fr

[perl #66790] [BUG] Perl6MultiSub and MultiSub do not stringify well

2009-06-20 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #66790] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66790 > The following code demonstrates that MultiSub and Perl6MultiSub do not stringify t

[perl #66538] [BUG] Rakudo falls in the infinite loop in Range with non-ascii

2009-06-15 Thread Patrick R. Michaud via RT
At the moment string ranges are only defined for certain subsets of Unicode. See the description under "Autoincrement precedence" in Synopsis 3. More to the point, if you want to cycle through a range of codepoints, you probably want: map { .chr }, 44032..45208; I agree that the string form

[perl #66388] [BUG] Cannot put Pod after a role declaration statement in Rakudo

2009-06-08 Thread Patrick R. Michaud via RT
On Mon Jun 08 06:51:53 2009, masak wrote: > Rakudo doesn't support '=begin SUMMARY' Pod syntax!? [...] > rakudo: role A;␤=begin SUMMARY␤This be a summary.␤=end > SUMMARY␤say "OH HAI" > rakudo 5f70a6: OUTPUT«Unable to parse role definition at line > 2, near ";\n=begin S" [...] > ah. there we go.

[perl #66364] Strange results with chars/bytes/graphs methods

2009-06-08 Thread Patrick R. Michaud via RT
On Sun Jun 07 00:57:34 2009, patmar19 wrote: > When I try pugs or perl6 I get strange results whith Str methods : > > pugs -e 'say "1234é".chars' => 5 > perl6 -e 'say "1234é".chars' => 6 > > pugs -e 'say "1234é".bytes' => 6 > perl6 -e 'say "1234é".bytes' => 8 > > pugs -e 'say "1234é".graphs' =>

[perl #66270] [TODO] get Perl::Grammar.parse (with the Perl6::Grammar::Actions) to work

2009-06-05 Thread Patrick R. Michaud via RT
Test now added to S05-grammar/std.t, closing ticket. Pm

[perl #66270] [TODO] get Perl::Grammar.parse (with the Perl6::Grammar::Actions) to work

2009-06-05 Thread Patrick R. Michaud via RT
Now added in 056847f. Please add a test to t/spec so we can close this ticket. :-) Pm

[perl #66280] [BUG] Ranges appear to modify readonly lexicals in pointy nested for loops

2009-06-04 Thread Patrick R. Michaud via RT
Now fixed in 9e2b9ad: $ cat 66280 for 1,3 -> $i { for $i..4 -> $j { say "$j,$i" }; $i.say; } $ ./perl6 66280 1,1 2,1 3,1 4,1 1 3,3 4,3 3 $ Test added to range.t. Closing ticket, thanks! Pm

[perl #66250] Trouble with white space in Rakudo grammars

2009-06-04 Thread Patrick R. Michaud via RT
On Wed Jun 03 06:08:46 2009, haakonsk wrote: > This doesn't work: > grammar A { rule TOP { 'a' ' b' {*} } }; my $m = A.parse('a b'); say $/; > Result: Empty string > Expected result: "a b" Rakudo is correct here. Whitespace in rules is metasyntactic -- it gets replaced by <.ws>. So, the above r

[perl #66182] No "die" sub found in Rakudo

2009-06-03 Thread Patrick R. Michaud via RT
The current version of Rakudo (after Jonathan's merge) now reports: $ cat 66182 my $x; [$x.WHAT, $x.HOW, $x]>>.say; $ ./perl6 66182 Failure() Method 'say' not found for invocant of class 'P6metaclass' $ I don't know if this is more along the lines of what you were lo

[perl #65412] Null PMC caused by implicit return of regex

2009-06-02 Thread Patrick R. Michaud via RT
This code appears to be working for me: $ cat 65412 class A { has $!rx; method do { $!rx = / xyz / } } A.new.do $ ./perl6 65412 $ I suspect the problem is really with the evalbot attempting to evaluate the returned regex in boolean context after the progr

[perl #65674] Cannot define a multi sub in a class in Rakudo

2009-06-02 Thread Patrick R. Michaud via RT
This is now working properly in c907d37 ... assigning ticket for spectest verification, and then it can be closed. Thanks! Pm

[perl #63800] Method 'result_object' not found calling make in a grammar action method

2009-06-02 Thread Patrick R. Michaud via RT
Rakudo now gives a much more useful error message for the case where make() cannot set a result object: $ cat 63800 grammar G { regex TOP { 'a' {*} } } class GA { method TOP($m) { make GA.new } } G.parse('a', :action(GA.new)); $ ./perl6 63800 make

  1   2   3   4   5   >