[perl6/specs] e5b176: Fix typo

2019-02-09 Thread Carl Mäsak
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: e5b176cae67ba74035dd2be3518dca863f5e780e https://github.com/perl6/specs/commit/e5b176cae67ba74035dd2be3518dca863f5e780e Author: Carl Masak Date: 2019-02-09 (Sat, 09 Feb 2019) Changed paths: M S03-ope

[perl #130039] [BUG] Can't represent Num literals close to the representable maximum in Rakudo

2016-11-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #130039] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130039 > Wondering what the highest number is below Inf and lowest above -Inf MAR

[perl #129969] [BUG] .comb no longer works well with <( )> in Rakudo

2016-10-26 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #129969] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129969 > m: say "abc def abc".comb(/a<(bc)>/) rakudo-moar

[perl #129768] [BUG] Wrong error message when (disallowed) positional slurpy with a default is preceded by named in Rakudo

2016-09-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #129768] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129768 > Hello :) So, wondering if anyone might know - in a parameter signature,

[perl #129093] [BUG] LAST does not trigger in -ne loop in Rakudo

2016-08-26 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #129093] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129093 > Why I don't see last line? $perl6 -ne 'LAST .say' fil

[perl #129080] [BUG] Missing bit in error message about R?? in Rakudo

2016-08-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #129080] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129080 > m: say 1 R?? 2 !! 3 rakudo-moar 9ccd84: OUTPUT<<===SORRY!=== Er

[perl #128736] [BUG] .splice broken in Rakudo

2016-07-26 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128736] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128736 > * masak learns that TravisCI has been reporting test failures for 007 sin

[perl #123452] [BUG] Grammar fails unexpectedly and then succeeds when Grammar::Tracer is imported in Rakudo

2016-07-02 Thread Carl Mäsak via RT
TimToady_: ooc, do you agree that tracing a grammar breaks LTM matching? https://github.com/jnthn/grammar-debugger/issues/13#issuecomment-229940842 The solution, for whoever fancies implementing it, is probably to mix a role into the tracing closure that we hand back. Where said role has the

[perl #128398] [BUG] LAST does not work with -n in Rakudo

2016-06-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128398] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128398 > $ perl6 --version This is Rakudo version 2016.05-115-g8430f07 built on M

[perl #128318] [BUG] infix:<%> gives different result for negative rhs when the lhs is a native int in Rakudo

2016-06-04 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128318] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128318 > this may sound outrageous, but I think I've just uncovered a bug i

[perl #128221] [BUG] Weird internal error when parsing some very simple Pod with '-' in the first column of a table in Rakudo

2016-05-23 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128221] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128221 > continuing my problems with p6 pod: I have scrubbed a bad pod file down

[perl #128210] [BUG] Can't adverb approximately-equals operator in Rakudo

2016-05-22 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128210] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128210 > m: my $x = 0; say $x ≅ 0 :tolerance(1e-3) rakudo-moar 7a4ca4: OU

[perl #128039] [BUG] Misleading suggestion in .substr error message for positive index values in Rakudo

2016-04-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128039] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128039 > m: ''.substr(5).say rakudo-moar 1acf80: OUTPUT«(HANDLED) Start

[perl #128038] [BUG] Something is handling the Failure from a .substr in Rakudo

2016-04-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #128038] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128038 > m: ''.substr(5).handled.say rakudo-moar 1acf80: OUTPUT«True␤»

[perl #127945] [BUG] in a grammar calls &return in Rakudo, shouldn't

2016-04-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127945] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127945 > m: grammar Foo { token TOP { }; token return { .+ }; }; Foo.parse(

[perl #127845] [BUG] Making a parameter of a BULID submethod a uint8 triggers a bytecode validation error in Rakudo

2016-04-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127845] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127845 > m: class A { has uint8 $.x; submethod BUILD(:$!x) { } }; A.new(:x(5)).p

[perl #127839] [BUG] Putting 'use lib' after 'use DBIish' causes lookup of the symbol DBError to fail in Rakudo

2016-04-05 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127839] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127839 > ok, camelia isn't enough to confirm this, so if I could ask someone

[perl #127822] [BUG] Doing two S/// with an `andthen` between them messes up $_ in Rakudo

2016-04-02 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127822] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127822 > m: say (S/Once/Twice/ given "Once upon a time") rakudo-moar a8

[perl #127789] [BUG] SumeEnum.enums.invert produces a hash where the values are string names, not enum values in Rakudo

2016-03-26 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127789] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127789 > m: enum Stone «:None<.> :Vertical :Horizontal :Neutral»; my %h =

[perl #127723] [BUG] "42" is wrongly rejected by from-json, even though it's valid JSON in Rakudo

2016-03-19 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127723] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127723 > m: from-json("42") rakudo-moar ad1928: OUTPUT«Invalid JSON: 42

[perl #127704] [BUG] Hash.clone differs from hash assignment; the hash and its clone are spookily entangled

2016-03-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127704] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127704 > m: my %h1; %h1 = 1; my %h2 = %h1; %h2 = 2; say %h1 rakudo-moar 42fb81: OU

Re: '!' versus 'not' in boolean expression

2016-01-25 Thread Carl Mäsak
Tom (>): > In creating some new Perl 6 programs I've run across several instances > I'm confused about, to wit: > > Example 1 > --- > >> my %h; say 'false' if !%h:exists; > Unexpected named parameter 'exists' passed I can explain this one. But it's the kind of explanation that makes a

[perl #127214] [BUG] Not getting the nice "Illegally post-declared type" error for types with :: in them in Rakudo

2016-01-08 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #127214] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127214 > m: class C { has $.x = D.new }; class D {} rakudo-moar af8798: OU

[perl #126984] [BUG] WhateverCode in given doesn't get refreshed when entering surrounding block in Rakudo

2015-12-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126984] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126984 > m: sub foo($x) { say (* == $x)($_) given $x }; foo(1); foo(2) rakud

[perl #126975] [BUG] Confused internal error when using `.= new` on an attribute of a type with a `::` in it in Rakudo

2015-12-20 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126975] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126975 > m: class A::B {}; class C { has A::B $.ab = A::B.new }; say "alive&qu

[perl #126969] [BUG] Smartmatching against a regex in a variable doesn't capture things into $/ in Rakudo

2015-12-19 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126969] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126969 > m: say so "foo" ~~ /f(oo)/; say ~$0 rakudo-moar 091ee7: OUTPUT

[perl #126927] [BUG] Spurious warning when trying to smartmatch num64 against Num in Rakudo

2015-12-15 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126927] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126927 > m: say num64 ~~ Num rakudo-moar 9e53fa: OUTPUT«Cannot unbox a type obj

[perl #126827] [BUG] Class declaration from one module not visible if another module is loaded after it with a very similar class declaration in Rakudo

2015-12-06 Thread Carl Mäsak via RT
masak: I still doubt it's actually 8728828 that's to blame. Between 3b943782 and 8728828 there's a lot of refactoring, especially some changes touching the handling of global merging. Might be a good idea to bisect that (with manual precompilation in every step) nine: will do. [...] nine: t

[perl #126827] [BUG] Class declaration from one module not visible if another module is loaded after it with a very similar class declaration in Rakudo

2015-12-06 Thread Carl Mäsak via RT
masak: if 87288285f6f398ec7cba0900312ced4b580d79ed is to blame, it may just be an older precompilation issue that surfaced because we precompile everything that's too slow to run away now... masak: to find that out, it would help if you could test with a version before 3b943782768260d4422933f4

[perl #126827] [BUG] Class declaration from one module not visible if another module is loaded after it with a very similar class declaration in Rakudo

2015-12-05 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126827] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126827 > $ perl6 --version This is rakudo version 2015.11-379-gfdec627 built on M

[perl #126724] [BUG] Unsatisfactory internal error when trying to compose two roles (connected with 'does') that share the same private attribute in Rakudo

2015-11-24 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126724] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126724 > m: role R { has $.x }; role S does R { has $.x }; S.new rakudo-moar :

[perl #126717] [BUG] Exception generated within the .message method of a thrown exception is silently swallowed

2015-11-23 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126717] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126717 > m: class X::Test is Exception { method message { $.x } }; die X::Test.new

[perl #126532] [BUG] Internal error when passing whitespace through a named argument in Rakudo

2015-11-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126532] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126532 > Basically, any argument containing only whitespace seems to trigger this er

[perl #126510] [BUG] >>~>> with a List of Pair on the left gets confused and starts talking about the Pairs being immutable in Rakudo

2015-10-31 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126510] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126510 > m: say >>~>> "foo" rakudo-moar 36c4c6: OUTPUT«(af

[perl #126378] [BUG] "Useless use of variable" warning doesn't show up on -e in Rakudo

2015-10-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126378] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126378 > m: my $a = 2; my $b = 2; $a, $b = $b, $a + $b; say $b rakudo-moar a

[perl #126332] [BUG] .assuming ignores anything from the second argument onwards in Rakudo

2015-10-12 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126332] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126332 > m: my &f := &substr.assuming('hello world'); say f(0,

[perl #126270] [BUG] Something fishy with lines() and looping over two items at a time in Rakudo

2015-10-05 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126270] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126270 > p6: spurt('/tmp/ABCD.txt', "A\nB\nC\nD"); for &#x

Re: signatures, multi and named arguments

2015-09-29 Thread Carl Mäsak
the "signatures, multi and named arguments" email on p6u, is that a case of the querent forgetting to ! their nameds? masak: Sounds like; named args serve as a tie-break but you actually have to demand them be present in methods for that to help, given methods accept all named args. * masak sends

[perl #126198] [BUG] Defining a Proxy with methods instead of subs leads to surprising results in Rakudo

2015-09-26 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126198] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126198 > moritz++' gist inlined for your convenience: our $count = 0; class

[perl #126089] `done` outside of a supply block fails silently in Rakudo

2015-09-17 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126089] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126089 > so what does `done` actually do outside of a `supply` block? masak: Not

[perl #126007] [BUG] A call to a post-declared doesn't call the sub but returns it in Rakudo

2015-09-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126007] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126007 > found a regression. m: sub foo { sub bar($) { "OH HAI" }; b

[perl #125988] [BUG] Redeclaration of return type in nested signature insufficiently forbidden in Rakudo

2015-09-04 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125988] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125988 > m: sub foo( Str &b:(Bool --> Int) ) { say "alive" }; fo

[perl #125985] [BUG] Internal error when a constant, unspace, and a map are involved in Rakudo

2015-09-04 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125985] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125985 > hey, #perl6, I wrote this: https://gist.github.com/masak/b84a87a694217c950

[perl #125980] [BUG] Cannot define a non-alphanumeric option flag in MAIN multi in Rakudo

2015-09-03 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125980] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125980 > This works fine: $ perl6 -e 'sub MAIN("foo") { say &quo

[perl #125935] [BUG] Cannot print a type captured copied into a variable in the parameter list of a role in Rakudo

2015-08-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125935] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125935 > m: role R[::N, $result = N] { say $result }; my $r = R[Int].new rakud

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-28 Thread Carl Mäsak
Moritz (>>), Tux (>): >> I could continue with other Perl 5 deficiencies (no strict by default, > > Using strict *STILL* is not enabled by default for perl6 > one-liners either: > > $ perl6 -e'my Int $this = 1; $thıs++; say $this;' > 1 > $ perl6 -Mstrict -e'my Int $this = 1; $thıs++; say $this;' >

[perl #125923] [BUG] .classify-list doesn't work with BagHash in Rakudo

2015-08-27 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125923] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125923 > m: my %b := BagHash.new(); %b.classify-list( {.comb}, 20..40 ); say %b

[perl #125899] [BUG] Just-declared variable should be visible inside 'will ' block, but isn't in Rakudo

2015-08-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125899] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125899 > m: my $x will leave { "say $x" }; $x = 5 rakudo-moar f7cfe9: OU

[perl #125876] [BUG] Strange internal error on `my $_` inside while loop in Rakudo

2015-08-23 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125876] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125876 > m: my @test; while @test { my $_ = 1 } rakudo-moar d6bf55: OUTPUT«===SOR

[perl #125689] [BUG] No error when doing 'is trait' and the trait is missing in Rakudo

2015-07-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125689] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125689 > m: multi trait_mod:(Mu:U $type, :$data!){ say $type.attributes; say 1

Announce: Rakudo Perl 6 compiler, Development Release #90 ("Prague")

2015-07-24 Thread Carl Mäsak
possible, as well as those people who worked on the design docs, the Perl 6 test suite, MoarVM and the specification. The following people contributed to this release: Jonathan Worthington, Elizabeth Mattijsen, Tobias Leich, skids, Moritz Lenz, Christian Bartolomäus, Jonathan Scott Duff, Nick

[perl #125677] [BUG] Argument to .rotate insufficiently Cool in Rakudo

2015-07-24 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125677] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125677 > my $key = prompt('> '); @letters.rotate($key) Why should I c

[perl #125659] [BUG] Internal error when doing $:: in Rakudo

2015-07-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125659] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125659 > m: class m { has $.a; method m1() { $:: = 1; } } ; my $c = m.

[perl #125648] [BUG] :11 isn't a parse error in a regex in Rakudo

2015-07-20 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125648] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125648 > m: say '00:11:22' ~~ /00:11:22/ rakudo-moar f90dfc: OUTPUT«

[perl #125640] [NYI] Attribute initialization with ::= in Rakudo

2015-07-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125640] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125640 > m: class Indiana { has $.pi ::= 3 }; say Indiana.new.pi rakudo-moar 4

[perl #125638] [BUG] LTA error message on illegally post-declared label in Rakudo

2015-07-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125638] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125638 > m: goto b; b: ; say "hello"; rakudo-moar 48c0ba: OUTPUT«=

[perl #125626] [BUG] Words sub form can not handle a $limit parameter of * (Whatever) in Rakudo

2015-07-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125626] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125626 > Any reason why words("foo bar baz blat", *) shouldn't work

[perl #125614] [BUG] Can't store whole 1&2 junctions in Mu-keyed hash in Rakudo

2015-07-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125614] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125614 > my %h{Mu}; # now you can store objects as keys m: my %xy{Mu}; rakud

[perl #125608] [BUG] Longest prefix in || alterations not to spec in Rakudo

2015-07-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125608] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125608 > when determining the longest literal prefix for a rule, I see that

[perl #125598] [BUG] $/ does not bind correctly in the right-hand side of s/// inside a for loop in Rakudo

2015-07-11 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125598] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125598 > m: my $x = 'a1'; $x ~~ s/(\d+)/<$0>/; say $x rakudo-moar

[perl #125595] [LHF] LTA error message with malformed loops

2015-07-11 Thread Carl Mäsak via RT
alex (>): > Code: > loop (my $i = 0; $i <= 5; $i++;) { say } > > Result: > ===SORRY!=== Error while compiling ./test.pl > Missing block > at ./test.pl:2 > --> loop (my $i = 0; $i <= 5; $i++⏏;) { say } Interesting failure mode. That semicolon looks unnecessary but harmless to me. (It's of the

[perl #125591] [BUG] Accessor use (correctly) forbidden in submethod body but (mistakenly) allowed in parameter default expression in Rakudo

2015-07-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125591] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125591 > m: class C { has $.x = 42; submethod BUILD(:$.x) {} }; say C.new.x rakud

[perl #125571] [BUG] splice is not typesafe in Rakudo

2015-07-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125571] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125571 > m: my Int @a = 1, 2, 3; @a.push("4"); say @a rakudo-moar 38

[perl #125555] [NYI] Comparison ops for DateTimes in Rakudo

2015-07-05 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #12] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=12 > hm, we have comparison ops for Date objects but not for DateTime objec

[perl #125543] [BUG] De-indentation should de-indent physical lines, not whitespace following a \n escape in heredocs in Rakudo

2015-07-03 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125543] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125543 > I found some behavior using heredocs, and I'm not really sure what

[perl #125539] [BUG] samewith doesn't work on subs in Rakudo

2015-07-03 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125539] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125539 > what's the idiomatic way to call a MAIN multi from another? masak

Re: Problem with string index for substrings a position zero (a bug?)

2015-07-03 Thread Carl Mäsak
Hi Tom, What you're experiencing is not a bug. It's the fact that if 0 ends up in your $idx variable, then that 0 will evaluate as False in an if statement (or in a && operand). But jumping ahead to what you probably *meant* to write: if defined($idx) && $idx >= 0 { $str = $str.substr(0, $idx)

[perl #125513] [BUG] Bogus error when putting the named slurpy *%_ before the positional slurpy *@_ in Rakudo

2015-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125513] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125513 > m: class C { method foo(*%_, *@_) { say "OH HAI" } }; C.new.

[perl #125507] [BUG] A script shows an invalid read in valgrind (and leaks and segfaults) in Rakudo

2015-06-29 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125507] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125507 > i'm a newbie. started playing with perl6 just recently. i wrote a mo

[perl #125505] [BUG] Can't use a Capture to modify the underlying value in Rakudo

2015-06-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125505] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125505 > I How can I make a reference to scalar? m: my $scalar = 42; my $r

[perl #125483] [BUG] Multi dispatch narrowness analysis doesn't ignore the part after ;; in the signature in Rakudo

2015-06-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125483] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125483 > disambiguating performs a narrowness analysis. only things to th

[perl #125482] [BUG] Signature stringifies the `;;` as a comma in Rakudo

2015-06-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125482] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125482 > Suggested by yary. m: sub foo($a;; $b) { say "OH HAI" }; foo(1,

[perl #125454] [BUG] Deprecation warning when using "pipe" builtin is telling user to use "pipe" builtin instead in Rakudo

2015-06-22 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125454] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125454 > $ perl6 -v This is perl6 version 2015.06-36-g164f1e0 built on MoarVM versi

[perl #109322] [BUG] Lexical weirdness from blocks inside re-entrant subs in Rakudo

2015-06-19 Thread Carl Mäsak via RT
A bit late to the game, but... here's a shorter version: m: my $y = 1; sub foo($x) { $y-- && foo("z"); { say $x } }; foo("x") rakudo-moar d179b4: OUTPUT«z␤z␤» again, should say "z␤x␤" * masak adds the example to RT #109322

[perl #125440] [BUG] Indirect object colon doesn't parse just before EOF in Rakudo

2015-06-19 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125440] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125440 > Last question (I hope) - Is there something like indirect object syntax th

[perl #125324] [BUG] `is default` doesn't do the right thing on a bunch of my-declared variables in parentheses in Rakudo

2015-06-03 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125324] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125324 > m: my $b is default(42); say $b rakudo-moar c2a57e: OUTPUT«42␤» m: my ($

[perl #125317] [BUG] sign(NaN) is 1, not NaN, in Rakudo

2015-06-03 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125317] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125317 > m: say sign NaN rakudo-moar c2a57e: OUTPUT«1␤» * masak submits rakudobu

[perl #125289] [BUG] Array with pair written with the value implicitly True, [:a], won't evaluate (or .perl) properly in Rakudo

2015-05-31 Thread Carl Mäsak via RT
Fixed (37e2c9), spectested (c2effba). Resolving ticket.

[perl #125289] [BUG] Array with pair written with the value implicitly True, [:a], won't evaluate (or .perl) properly in Rakudo

2015-05-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125289] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125289 > m: my %h = a => [a => 1], b => [b => 1, b => 2]; %h.per

[perl #125260] [BUG] Implicit parameters are not checked against contract implied by their sigil in Rakudo

2015-05-27 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125260] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125260 > * masak discovered a rakudobug! m: sub foo { say &^fn }; foo(42) r

[perl #125242] .perl method fails on hashes with type-constrained keys

2015-05-26 Thread Carl Mäsak via RT
lizmat (>) > This appears fixed with 869306336fadd85320bfc1 Resolving ticket.

[perl #125227] [BUG] Error message returns a line inside src/Perl6/World.nqp instead of the user's source file in Rakudo

2015-05-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125227] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125227 > hmmm Compiling lib/Facter.pm to mbc useless use of 'is rw

[perl #125216] [BUG] -0e0 === 0e0 in Rakudo

2015-05-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125216] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125216 > m: say -1/Inf; rakudo-moar 3fc98b: OUTPUT«-0␤» -0? sure! -0 is a tota

[perl #125215] [BUG] 10 ** -1 is a Num, but should probably be a Rat since it can in Rakudo

2015-05-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125215] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125215 > m: for -1..2 ->\_{(10 ** _).WHAT.say} rakudo-moar 3fc98b: OUTPUT«

[perl #125210] [BUG] Preincrement prefix:<++> and postincrement postfix:<++> should be non-associative in Rakudo

2015-05-17 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125210] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125210 > lizmat++ lizmat++ ++lizmat++ m: my $lizmat = 42; ++$lizmat++ rakud

[perl #125170] [BUG] Cannot read from a file opened with open(:rw) in Rakudo

2015-05-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125170] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125170 > hm... if I read the code correctly, open(:rw) doesn't actually do wha

[perl #125168] [NYI] a way to open files in "r+" mode in Rakudo

2015-05-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125168] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125168 > so, how do I open a file in update mode (fopen "r+", perl5 op

[perl #62086] ~ in regexes shouldn't cause thrown exceptions

2015-05-12 Thread Carl Mäsak via RT
On Mon May 11 05:26:45 2015, pmichaud wrote: > After discussion with jnthn at OSDC.no, here's what we propose: > > In the regex engine, the default FAILGOAL behavior should be to simply > fail/backtrack. This would be the default behavior for (rakudo) > Cursor as well. > > Grammars that wish to

[perl #125120] [BUG] LTA error message when an enum value occurs in the signature of a routine without a closing curly brace '}' in Rakudo

2015-05-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125120] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125120 > m: enum X; enum Q; multi infix:«~~»(X $a, Q $b) { True # all X match a

[perl #125101] Newline before => breaking parse

2015-05-06 Thread Carl Mäsak via RT
labster (>): > It sounds like this is intentional behavior. Indeed. Rejecting ticket.

[perl #116370] [BUG] a macro with $_ as an argument doesn't work in a statement_mod 'for' loop in Rakudo

2015-05-01 Thread Carl Mäsak via RT
bartolin (>): > But back in 2013 the output was «4␤5␤6␤». I'd say «4␤5␤6␤» is the correct output. There's nothing to suggest to me that it should get stuck on 4. So either this ticket should be closed (because the original problem is now gone) and another one opened with the new problem, or thi

[perl #124434] [BUG] Passing an Exception object to Failure.new segfaults (SEGV) in sink context in Rakudo

2015-05-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #124434] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124434 > m: Failure.new(Exception.new) rakudo-moar a073f5: OUTPUT«No exception ha

[perl #124317] Possible type signature bug

2015-04-27 Thread Carl Mäsak via RT
Fixed and tested as of 1c916bc. Resolving ticket.

[perl #124317] Possible type signature bug

2015-04-27 Thread Carl Mäsak via RT
I should probably start by looking at the RT queue notably #124321 Calling .^make_pun is surely wrong It'll create one every time .^inheritalize gets the pun Though maybe we should have a .^pun that does similar, and make inheritalize delegate to it. ok, so that was easy. the problem is in.

Announce: Rakudo Perl 6 compiler, Development Release #87 ("Vladivostok")

2015-04-23 Thread Carl Mäsak
t, the Perl 6 test suite, MoarVM and the specification. The following people contributed to this release: Jonathan Worthington, Larry Wall, Elizabeth Mattijsen, Tobias Leich, Pepe Schwarz, Moritz Lenz, Will "Coke" Coleda, Carl Mäsak, Alexander Moquin, raydiak, Brent Laabs, Christian Bar

[perl #117853] [BUG] can't assign here documents to constants

2015-04-12 Thread Carl Mäsak via RT
masak: I think https://rt.perl.org/Ticket/Display.html?id=117853 can get a test (if there isnt' already one) and be closed now? jnthn: yep. was gonna add that to the ticket. * masak adds it now

[perl #124279] [BUG] Failure on the JVM backend having to do with 'gather' and 'last' and UnwindException in Rakudo

2015-04-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #124279] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124279 > r: gather loop { take my $foo; last; } rakudo-moar 5a38b2: ( no output )

[perl #124247] [BUG] -p causes change in $0 in {} in "" in right-hand side of assignment to special s[] form in Rakudo

2015-04-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #124247] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124247 > $ perl6 -v This is perl6 version 2015.03-170-g143f621 built on MoarVM versi

[perl #124226] [BUG] Opportunity to catch syntactically detectable calls to attribute-accessing methods on type objects in Rakudo

2015-04-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #124226] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124226 > <[Tux]> m: class C { has Int $!x; method foo { ($!x, my $b) = (

[perl #124213] [BUG] Bizarre LTA error message when not putting in whitespace between 'is MyBase' and the opening brace '{' in class declaration in Rakudo

2015-03-31 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #124213] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124213 > m: class T{}; class S is T{} rakudo-moar 2b303a: OUTPUT«===SORRY!==

  1   2   3   4   5   6   7   8   9   10   >