[perl #127143] Different Behaviour With/Without Commas in Sub/Method Calls and slipped hashes

2018-05-21 Thread Brian S. Julin via RT
On Mon, 21 May 2018 09:13:15 -0700, b...@abrij.org wrote: > Note if we fix | to use fake infix adverbs, then we create the problem > that |(1,1),(2,2),:f :g will be 1,1,:g,(2,2),:f. ...sorry that might be OK due to the "first pair in term position"... but |(1,1),(2,2),1 :g will be 1,1,:g,(2,2),

[perl #127143] Different Behaviour With/Without Commas in Sub/Method Calls and slipped hashes

2018-05-21 Thread Brian S. Julin via RT
Without the comma, the colonpair is in infix position, which means it applies to the prefix unary | operator. So whether this should be an error or "work" depends on what we can teach the | operator to do with fake_infix adverbs it is passed. Note if we fix | to use fake infix adverbs, then we

[perl #114042] [BUG] LTA error message about returning from an exhausted routine in Rakudo

2018-05-10 Thread Brian S. Julin via RT
This was fixed on MoarVM for https://github.com/rakudo/rakudo/issues/1216 Tests added for the variants in this ticket in https://github.com/perl6/roast/commit/fe57091172 JVM apparently still needs work on this, so the tests are skipped for JVM. keeping open for JVM fixes.

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

2018-05-09 Thread Brian S. Julin via RT
Current behavior seems to be satisfactory now: $ perl6 -e 'role R { has $.x }; role S does R { has $.x }; S.new;' Attribute '$!x' conflicts in role composition Test added in https://github.com/perl6/roast/commit/c65ed93912 closing.

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

2018-05-09 Thread Brian S. Julin via RT
The examples would fail usage constraints with the parameterless MAIN. I could not get them to fail with any internal messages on current rakudo, either with the parameterless MAIN or with a MAIN that had a :$y. Haven't looked as to when this got fixed. Tests added for both cases (though I had t

[perl #123380] [BUG] A script that gives different results when executed from a file and when pasted into REPL

2018-05-08 Thread Brian S. Julin via RT
Test PR for rakudo tree: https://github.com/rakudo/rakudo/pull/1806 If that is accepted, someone with a jvm build should check whether it needs to be fudged for rakudo-j and if it is fine there as well, this ticket can be closed.

[perl #122815] [BUG] nativecall sub declaration complains about 'returns' type when type has been predeclared using yadda-yadda on Rakudo Moar

2018-05-08 Thread Brian S. Julin via RT
Golf and change of behavior: $ perl6 -e 'use NativeCall; class T is repr is export { sub new(size_t $n) returns T is symbol is native { * }; }; T.new();' $ perl6 -e 'use NativeCall; class T {...}; class T is repr is export { sub new(size_t $n) returns T is symbol is native { * }; }; T.new();' =

[perl #117377] [BUG] 'callsame' in postcircumfix:<( )> method in routine trait does nothing in Rakudo

2018-05-08 Thread Brian S. Julin via RT
This is a very old ticket and we no longer have postcircumfix:<( )> for objects. If you redo the example to use CALL-ME it still does not call the original class method, however, CALL-ME is defined as a submethod, not a method, and testing the difference: $ perl6 -e 'class S { method x { "Sx".sa

[perl #116709] [BUG] Rakudo only passes t/spec/S19-command-line/dash-e.t with a UTF-8 locale

2018-05-08 Thread Brian S. Julin via RT
Well, the current test file succeeds in both cases. This ticket is so old it may more be the tests have changed than anything else, but there was also lot of charset work so maybe it is actually fixed. If you can still figure out how to break something with LC_ALL, please re-file a github issue

[perl #133186] 2019 MIPIM Yacht Charters

2018-05-08 Thread Brian S. Julin via RT
spam rejected

[perl #133187] 2018 Cannes Lions

2018-05-08 Thread Brian S. Julin via RT
spam rejected

[perl #130910] [REGEX] Backtracking into a parameterized subrule like `` tries to call it without arguments.

2018-05-08 Thread Brian S. Julin via RT
This is also an issue in nqp. $ nqp -e 'grammar f { regex TOP { ^ $ }; regex foo($i) { .. } }; nqp::say(f.parse("aaa"));' Too few positionals passed; expected 2 arguments but got 1 Fixing it in nqp first is probably the best first step. To that end I investigated some and it looks like this w

[perl #130205] [BUG] Weird parsing of q:w with matching delimiters when same delimiters appear inside

2017-10-08 Thread Brian S. Julin via RT
On Sun, 08 Oct 2017 17:35:21 -0700, samant...@posteo.net wrote: > This is happening because it appears to split it up at the matching > delimiter and then concat it back together again, concatting it back > together after the word split. Might be the same bug as RT#119401

[perl #131478] Warning about $. when using metamethod

2017-10-07 Thread Brian S. Julin via RT
On Thu, 01 Jun 2017 16:07:41 -0700, ju...@tnx.nl wrote: > code: > > class Command { method Str { "<$.^name>" } } > # or even just: > class Command { method Str { $.^name } } > > gives: > > Unsupported use of $. variable; in Perl 6 please use the .kv method on > e.g. .lines > > workaround: > >

[perl #127279] [BUG] Infinite loop with |"a".."z"

2017-10-07 Thread Brian S. Julin via RT
On Fri, 06 Oct 2017 19:32:17 -0700, b...@abrij.org wrote: > On Fri, 15 Jan 2016 10:24:16 -0800, c...@zoffix.com wrote: > > The slip (|) before a range has higher precedence and it interprets > > the starting point of the range as a single-item list. This leads to > > two types of bugs, and both sit

[perl #127279] [BUG] Infinite loop with |"a".."z"

2017-10-06 Thread Brian S. Julin via RT
On Fri, 15 Jan 2016 10:24:16 -0800, c...@zoffix.com wrote: > The slip (|) before a range has higher precedence and it interprets > the starting point of the range as a single-item list. This leads to > two types of bugs, and both situations should likely be error > messages: > > 1) Infinite loop w

[perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-05 Thread Brian S. Julin via RT
On Wed, 04 Oct 2017 23:19:19 -0700, david.warring wrote: > From > https://docs.perl6.org/language/nativecall#Embedding_CStructs_and_CUnions > > class Point is repr('CStruct') { > has uint16 $.x; > has uint16 $.y; > } > > class MyStruct2 is repr('CStruct') { > HAS Point $.point; # <--

[perl #130604] [PARSER] Weirdness when mixing `..` and `...` without parens

2017-10-04 Thread Brian S. Julin via RT
On Mon, 02 Oct 2017 00:26:27 -0700, alex.jakime...@gmail.com wrote: > Oh. Maybe it's https://rt.perl.org/Ticket/Display.html?id=127279 ? > > On 2017-08-26 08:01:06, alex.jakime...@gmail.com wrote: > > Indeed, I'm not sure what I was smoking. > > On 2017-01-20 21:27:50, sml...@gmail.com wrote: > >

[perl #128054] [PARSER] In a string enclosed in parens, a {}-interpolation can't access the topic $_ of a statement modifier

2017-10-03 Thread Brian S. Julin via RT
On Mon, 02 Oct 2017 19:08:27 -0700, alex.jakime...@gmail.com wrote: > Also worth taking a look at > https://rt.perl.org/Ticket/Display.html?id=126569 > > On 2017-09-29 14:06:58, b...@abrij.org wrote: > > On Sun, 28 May 2017 00:08:18 -0700, sml...@gmail.com wrote: > > > This bug is still present in

[perl #126375] [LTA] [NYI] error message leaks internal stuff: [SR-]

2017-10-02 Thread Brian S. Julin via RT
On Mon, 02 Oct 2017 18:21:29 -0700, alex.jakime...@gmail.com wrote: > It now prints a completely different error message. The major change > was in > https://github.com/rakudo/rakudo/commit/1628e485df1356ae51513009863998daacceffea > but see also how it was changing throughout the years: > https://g

[perl #131079] [SECURITY] regex injection allows arbitrary execution using dynamic method lookup

2017-09-29 Thread Brian S. Julin via RT
On Fri, 29 Sep 2017 12:05:52 -0700, c...@zoffix.com wrote: > PR is now merged: https://github.com/rakudo/rakudo/pull/1168 Tests now merged into roast via commit 6ae5f8ee2, so resolving this ticket.

[perl #128054] [PARSER] In a string enclosed in parens, a {}-interpolation can't access the topic $_ of a statement modifier

2017-09-29 Thread Brian S. Julin via RT
On Sun, 28 May 2017 00:08:18 -0700, sml...@gmail.com wrote: > This bug is still present in > > This is Rakudo version 2017.05-134-g0c5fe56cc built on MoarVM version > 2017.05-25-g62bc54e9 > implementing Perl 6.c. OK, keeping in mind that I have entirely, absolutely no idea what I am doing... I

[perl #130425] [PARSER] foo C.new: method form call tries to call `foo` routine if newline is present after ":"

2017-09-28 Thread Brian S. Julin via RT
On Wed, 28 Dec 2016 08:30:34 -0800, c...@zoffix.com wrote: > $ ./perl6 -e $'class C { method foo { say 10 } }; foo C.new:\n' > ===SORRY!=== Error while compiling -e > Undeclared routine: > foo used at line 1 > > $ ./perl6 -v > This is Rakudo version 2016.12-122-gd35efb6 built on MoarVM version

[perl #124006] [BUG] Callable roles fail to compile with non-meta method calls on self

2017-09-26 Thread Brian S. Julin via RT
On Fri, 06 Mar 2015 14:10:06 -0800, rayd...@cyberuniverses.com wrote: > See http://irclog.perlgeek.de/perl6/2015-03-06#i_10237431 and the next > few examples. > > perl6 -e 'role R does Callable { method foo { self.say } }' > ===SORRY!=== > Internal error: failed to remove block > > Removing the C

[perl #131079] [SECURITY] regex injection allows arbitrary execution using dynamic method lookup

2017-09-24 Thread Brian S. Julin via RT
On Sat, 23 Sep 2017 06:59:18 -0700, b...@abrij.org wrote: > On Thu, 30 Mar 2017 05:41:29 -0700, lloyd.fo...@gmail.com wrote: > > my $regex-from-user = '{ shell "/bin/sh" }'; > > try say "foo" ~~ /<$regex-from-user>/; # won't work > > $regex-from-user = '<::(shell "/bin/sh")>'; > > try say "foo" ~~

[perl #131676] doing a role fails to find inherited methods in some cases

2017-09-23 Thread Brian S. Julin via RT
On Mon, 07 Aug 2017 08:25:10 -0700, c...@zoffix.com wrote: > On Thu, 29 Jun 2017 03:46:02 -0700, c...@zoffix.com wrote: > > Mu provides iterator method, but when you mix in a role that wants it > > implemented, it doesn't find it: > > > > m: role Meow { method iterator {…} }; class Bar does Meow {}

[perl #131079] [SECURITY] regex injection allows arbitrary execution using dynamic method lookup

2017-09-23 Thread Brian S. Julin via RT
On Thu, 30 Mar 2017 05:41:29 -0700, lloyd.fo...@gmail.com wrote: > my $regex-from-user = '{ shell "/bin/sh" }'; > try say "foo" ~~ /<$regex-from-user>/; # won't work > $regex-from-user = '<::(shell "/bin/sh")>'; > try say "foo" ~~ /<$regex-from-user>/; # you got owned rakudo PR 1168 has been subm

[perl #131676] doing a role fails to find inherited methods in some cases

2017-09-22 Thread Brian S. Julin via RT
On Mon, 07 Aug 2017 08:25:10 -0700, c...@zoffix.com wrote: > On Thu, 29 Jun 2017 03:46:02 -0700, c...@zoffix.com wrote: > > Mu provides iterator method, but when you mix in a role that wants it > > implemented, it doesn't find it: > > > > m: role Meow { method iterator {…} }; class Bar does Meow {}

[perl #129829] .pick on large ranges returns binary-sparse result

2017-09-22 Thread Brian S. Julin via RT
On Mon, 10 Oct 2016 04:29:33 -0700, elizabeth wrote: > > On 10 Oct 2016, at 05:19, Zoffix Znet via RT > follo...@perl.org> wrote: > > > > Looks like libtommath has now been fixed: > > https://github.com/libtom/libtommath/pull/57 > > > > On Sat Oct 08 14:47:40 2016, timo wrote: > >> Apparently libt

[perl #128810] Leading multi-line declarator block on role breaks stubs in composition

2017-09-22 Thread Brian S. Julin via RT
On Mon, 01 Aug 2016 21:44:28 -0700, lue wrote: > m: #|(abc) role A { method foo { ... } }; class B does > A { method foo { "OK" } }; say B.foo > rakudo-moar f1313d: OUTPUT«===SORRY!=== Error while > compiling ␤Method 'foo' must be implemented by A because it is > required by a role␤at :1␤» > m:

[perl #123770] Coercer syntax doesn't check for definedness

2017-09-22 Thread Brian S. Julin via RT
On Mon, 09 Feb 2015 06:35:57 -0800, elizabeth wrote: > [15:31:47] m: sub a(Int(Cool:D) $a) { say $a }; a Cool > # feels this should fail > [15:31:48] <+camelia> rakudo-moar d29715: OUTPUT«use of > uninitialized value of type Cool in numeric context in sub a at > /tmp/L77KWsiM9N:1␤␤0␤» > [15

[perl #126433] Parameter coercion with type smiley doesn't work

2017-09-22 Thread Brian S. Julin via RT
On Fri, 23 Oct 2015 03:29:12 -0700, elizabeth wrote: > [12:14:56] m: sub a(Int:D() $a) { dd $a }; a "42" # > type smileys not complete first citizen yet :-( > [12:14:57] <+camelia> rakudo-moar 3df263: OUTPUT«Type check failed > in binding $a; expected Int but got Str␤ in sub a at > /tmp/b

[perl #132006] Instant.Instant is missing (say now.Instant)

2017-09-22 Thread Brian S. Julin via RT
On Thu, 31 Aug 2017 23:56:21 -0700, elizabeth wrote: > Fixed with 51709e01c0788c466af , tests needed. > > > On 31 Aug 2017, at 22:05, Aleks-Daniel Jakimenko-Aleksejev (via RT) > > wrote: > > > > # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev > > # Please include the string: [perl #132

[perl #104980] [TESTNEEDED] natively typed attributes and BUILD methods don't mix

2017-09-22 Thread Brian S. Julin via RT
On Fri, 22 Sep 2017 16:25:28 -0700, b...@abrij.org wrote: > On Thu, 21 Sep 2017 22:56:20 -0700, barto...@gmx.de wrote: > > On Thu, 21 Sep 2017 19:50:01 -0700, b...@abrij.org wrote: > > > > > > Current behavior (don't have a rakudo-j here): > > > > > > $ perl6-m -e 'class A { has str $.x; method BUI

[perl #132148] [RFC] native 'str' type unspecced, undocumented, and ill-defined

2017-09-22 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132148] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132148 > We've had a native 'str' type for a while, an

[perl #104980] [TESTNEEDED] natively typed attributes and BUILD methods don't mix

2017-09-22 Thread Brian S. Julin via RT
On Thu, 21 Sep 2017 22:56:20 -0700, barto...@gmx.de wrote: > On Thu, 21 Sep 2017 19:50:01 -0700, b...@abrij.org wrote: > > > > Current behavior (don't have a rakudo-j here): > > > > $ perl6-m -e 'class A { has str $.x; method BUILD(:$!x) { } }; say > > A.new(:x).x' > > foo > > > > If r-j now works

[perl #104980] natively typed attributes and BUILD methods don't mix

2017-09-21 Thread Brian S. Julin via RT
On Sun, 01 Mar 2015 12:29:14 -0800, barto...@gmx.de wrote: > As a status update: This currently fails with: > > $ perl6-m -e 'class A { has str $.x; method BUILD(:$!x) { } }; say > A.new(:x).x' > Cannot modify an immutable str > in method BUILD at -e:1 > in method BUILDALL at src/gen/m-CORE.se

[perl #129812] [OPTIMIZER] `is rw` candidates get called even if a non-rw argument is passed

2017-09-21 Thread Brian S. Julin via RT
On Sat, 05 Aug 2017 06:28:34 -0700, jan-olof.hen...@bredband.net wrote: > On Wed, 05 Oct 2016 14:23:57 -0700, c...@zoffix.com wrote: > > > > This code shows the bug: > > > > zoffix@leliana:~$ perl6 -e 'm: multi foo ($) {"right" }; multi > > foo ($ is rw) {"wrong"}; say foo "42"' > > wrong > > > > A

[perl #132128] [LTA] .new of subclasses of Int returns an Int

2017-09-19 Thread Brian S. Julin via RT
On Tue, 19 Sep 2017 11:12:23 -0700, c...@zoffix.com wrote: > On Tue, 19 Sep 2017 08:23:07 -0700, c...@zoffix.com wrote: > > m: class Foo is Int {}; my Foo $x .= new: 42; say $x; say $x.WHAT; > > rakudo-moar bb4579: OUTPUT: «Type check failed in assignment to $x; > > expected Foo but got Int (42)␤

[perl #127019] [LTA] inconsistent coercions for Bool

2017-09-19 Thread Brian S. Julin via RT
On Wed, 17 Aug 2016 09:03:15 -0700, c...@zoffix.com wrote: > Tests added in > https://github.com/perl6/roast/commit/d0f819872953d08cd9732fef50f2567264fcf41b There is still the matter of Numeric() in a signature. However since: $ perl6 -e 'my Numeric() $a;' ===SORRY!=== Error while compiling -e

[perl #130969] [LTA] more inconsistent coercions for Bool

2017-09-19 Thread Brian S. Julin via RT
On Fri, 10 Mar 2017 00:31:58 -0800, sidhe...@gmail.com wrote: > On Thu, Mar 9, 2017 at 9:17 PM, Brandon Allbery > wrote: > > > On Thu, Mar 9, 2017 at 2:55 PM, Zefram > > wrote: > > > >> The same goes for coercions from other enum types. > > > > > > This should be your hint. Enums *are* numeric,

[perl #125754] [BUG] handles Positional doesn't "work"

2017-09-18 Thread Brian S. Julin via RT
On Wed, 05 Aug 2015 10:06:17 -0700, jdv79 wrote: > Hello, > > I recently tried to make a custom array type so that I could > type the values. My intent would be that it would act like > an array in all ways except have the value typing. > > I tried delegating to * but that doesn't work because A

[perl #122137] Type object seem to bind in item or push

2017-09-18 Thread Brian S. Julin via RT
On Thu, 19 Jun 2014 17:45:23 -0700, elizabeth wrote: > Additional finds: > > [19:24:52] m: my @a; my $c = 1; @a.push: $($c,1); $c = > "hi"; @a.push: $($c,2); say @a.perl > [19:24:53] <+camelia>rakudo-moar 8812ca: OUTPUT«Array.new($("hi", > 1), $("hi", 2))␤» > [19:25:09] it would appear

[perl #130020] [RFC][@LARRY] Create a set of conventions to minimize impact internal changes to user's code

2017-09-17 Thread Brian S. Julin via RT
On Sun, 17 Sep 2017 08:44:47 -0700, c...@zoffix.com wrote: > More comments on similar issue: https://irclog.perlgeek.de/perl6/2017- > 09-17#i_15176823 > > Basically, a lot of core constructs aren't workable with user-land > subclasses. Note on the performance concerns... if we had a faster-than-a

[perl #126890] [BUG] pair with Nil key deparses incorrectly

2017-09-17 Thread Brian S. Julin via RT
On Sun, 13 Dec 2015 06:03:35 -0800, elizabeth wrote: > Completely right! > > 5b6cbc7d54ce5ad252cf74 fixes Pair.perl properly. > > > Liz > > > On 13 Dec 2015, at 11:16, Timo Paulssen wrote: > > > > I think you might have misread the bug report. > > > > This bug is about the .perl method on Pair

[perl #111474] [TESTNEEDED] Variable in EVAL'ed subregex doesn't get a proper lexical lookup

2017-09-17 Thread Brian S. Julin via RT
On Sun, 03 Mar 2013 10:47:32 -0800, FROGGS.de wrote: > There are weird things goind on: > > good: > r: '' ~~ / :my $a; <{ '$a' }> / > rakudo 123dfa: ( no output ) > > good: > r: say '' ~~ / :my $a; <{ '$a' }> / > rakudo 123dfa: OUTPUT«#␤» > > weird: > r: say '123' ~~ / :my $a=2; <{ '$a' }>

[perl #129215] Passing a Hash[...] as a parameter to an imported sub

2017-09-17 Thread Brian S. Julin via RT
On Tue, 06 Sep 2016 13:26:42 -0700, r...@ringlet.net wrote: > Hi, > > So here's the main program: > > #!/usr/bin/perl6 > > use v6.c; > > use lib '.'; > use trap; > > sub woof-local(Hash[Str:D] $data) > { > return $data[0]; > } > > { > my %opts = title => 'Something something s

[perl #130488] [LTA] Trying to output something unrepresentable in the encoding throws X::AdHoc

2017-09-15 Thread Brian S. Julin via RT
On Mon, 02 Jan 2017 16:35:46 -0800, comdog wrote: > Trying to output a character unrepresentable in the specified > encoding throws an X::AdHoc error. I think that should be X::IO, > and maybe there's enough issues here that an X::IO::Exception may > be interesting enough. > > my $file = 'enco

[perl #131162] [BUG][GLR] .splice loses containerization on replacement value

2017-09-15 Thread Brian S. Julin via RT
On Sun, 16 Apr 2017 12:56:58 -0700, elizabeth wrote: > Actually reported as a SO question by brian d foy: > > http://stackoverflow.com/questions/43437664/how-can-i-get-around-a- > slurpy-parameter-in-the-perl-6-signature > > > m: my @a = [1,1],[2,2],[3,3]; dd @a; @a.splice: 0, 2, > $[4,4

[perl #132032] [BUG] List.new loses Nil

2017-09-15 Thread Brian S. Julin via RT
On Fri, 15 Sep 2017 11:47:10 -0700, c...@zoffix.com wrote: > On Tue, 05 Sep 2017 03:19:45 -0700, zef...@fysh.org wrote: > > > (3, Nil) > > (3 Nil) > > > List.new(3, Nil) > > (3 (Any)) > > > > It is possible (as it should be) to put Nil into a List, if it's > > constructed using the comma operator.

[perl #126477] [GLR] .assuming on sub with is copy parameter fails

2017-09-14 Thread Brian S. Julin via RT
On Thu, 11 Aug 2016 09:24:31 -0700, coke wrote: > On Wed Oct 28 13:40:45 2015, gfldex wrote: > > sub foo(@a is copy, :$flag){ say @a }; > > my @a = 1,2; > > (&foo.assuming(:flag))(@a); > > > > # OUTPUT«replace this Array is copy logic␤ in sub __PRIMED_ANON at > > EVAL_2:2␤ in sub __PRIMED_ANON

[perl #131502] [BUG] Incorrect useless use warning when WhateverCode is passed as arg to Callable

2017-09-14 Thread Brian S. Julin via RT
On Sat, 03 Jun 2017 12:08:50 -0700, c...@zoffix.com wrote: > Oops. Long day. I meant WhateverCode is passed, not Junction. Fudged tests preemptively added to S02-types/whatever.t in roast commit 4b2fef409.

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

2017-09-14 Thread Brian S. Julin via RT
On Mon, 21 Dec 2015 13:33:51 -0800, masak wrote: > m: sub foo($x) { say (* == $x)($_) given $x }; foo(1); foo(2) > rakudo-moar cfb1f3: OUTPUT«True␤False␤» > * masak submits rakudobug > > Examining the expression printed, it basically says "$x should be > numerically equal to itself" in a circuit

[perl #131409] whatever auto closure fails with smartmatch with regex

2017-09-14 Thread Brian S. Julin via RT
On Wed, 31 May 2017 03:47:19 -0700, c...@zoffix.com wrote: > On Wed, 31 May 2017 03:31:49 -0700, zengargo...@gmail.com wrote: > > When using smartmatch against a regex, auto-whatever closure generation > > does not work whereas manual pointy closure does work. > > > > A '{ * eq $match}' behaves di

[perl #131846] [BUG] [REGRESSION] not accepting Inf/Whatever as upper bound

2017-09-14 Thread Brian S. Julin via RT
On Sun, 06 Aug 2017 11:24:13 -0700, elizabeth wrote: > Added to my todo list > > > On 6 Aug 2017, at 17:13, Joshua (via RT) > follo...@perl.org> wrote: > > > > # New Ticket Created by Joshua > > # Please include the string: [perl #131846] > > # in the subject line of all future correspondence a

[perl #130773] [PARSER] Bogus "Useless use" warning for WhateverCode in EVAL

2017-09-14 Thread Brian S. Julin via RT
On Sat, 26 Aug 2017 05:20:14 -0700, sml...@gmail.com wrote: > This bug is still present in > > Rakudo version 2017.08-8-g753c9a5ea built on MoarVM version 2017.08.1- > 19-g151a2563 > implementing Perl 6.c. Fudged tests preemptively added to S02-types/whatever.t in roast commit 4b2fef409.

[perl #126540] [BUG] &prefix: is misparsed when smartmatching inside WhateverCode

2017-09-14 Thread Brian S. Julin via RT
On Mon, 02 Nov 2015 09:43:13 -0800, andr...@gmail.com wrote: > $ perl6 -v > This is perl6 version 2015.10-124-g63f6fc9 built on MoarVM version > 2015.10-14-g5ff3001 > > $ perl6 -e 'say (* !~~ Int)(1)' > ===SORRY!=== Error while compiling -e > Variable '&infix:' is not declared > at -e:1 > -->

[perl #129856] namespace clashes

2017-09-14 Thread Brian S. Julin via RT
On Wed, 12 Oct 2016 07:07:19 -0700, mt1...@gmail.com wrote: > Hi, > > I wanted to define a class in the 'Pod' package like so (in file > lib/Pod/Render.pm6) > > > use Pod::To::HTML; > unit package Pod; > class Render { ># ... > } > > > Then use it > > use Pod::Render; > my Pod::Render $p

[perl #126426] Post-defined stubbed class not found if its name starts with an existing namespace

2017-09-14 Thread Brian S. Julin via RT
On Wed, 21 Oct 2015 22:08:47 -0700, sml...@gmail.com wrote: > This compiles and runs fine: > > class A::B { ... }; > > say A::B.new; > > class A::B { > has $.a = 42 > }; > > But this fails to compile: > > class X::B { ... }; > > say X::B.new; > > class X::B { > has $.a = 42 > }; > >

[perl #131962] [TESTNEEDED] [REGRESSION] `Pair.kv`/`.keys`/.`values` dies if either the key or the value is `Mu`

2017-09-13 Thread Brian S. Julin via RT
On Sat, 26 Aug 2017 06:17:15 -0700, elizabeth wrote: > Fixed with a5014fd0855545cc083b3590 , tests needed. > > > On 26 Aug 2017, at 13:10, Sam S. (via RT) > follo...@perl.org> wrote: > > > > # New Ticket Created by Sam S. > > # Please include the string: [perl #131962] > > # in the subject line

[perl #132081] [LTA] Wrong exception type on bad attribute default values

2017-09-13 Thread Brian S. Julin via RT
On Wed, 13 Sep 2017 18:21:56 -0700, b...@abrij.org wrote: > $ perl6 -e 'my Int $a is default("foo");' > ===SORRY!=== Error while compiling -e > Default value 'foo' will never bind to a parameter of type Int > at -e:1 > --> my Int $a is default("foo")⏏; > expecting any of: > constrai

[perl #126318] [BUG] trait 'is default' on attributes has no effect

2017-09-13 Thread Brian S. Julin via RT
On Wed, 13 Sep 2017 19:15:36 -0700, b...@abrij.org wrote: > On Fri, 16 Oct 2015 00:54:21 -0700, larry wrote: > > On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > > > say class { has Int $.foo is default(0) }.new.foo > > > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > > > > > class Foo { has Int $.foo is d

[perl #126318] [BUG][TESTNEEDED] trait 'is default' on attributes has no effect

2017-09-13 Thread Brian S. Julin via RT
On Fri, 16 Oct 2015 00:54:21 -0700, larry wrote: > On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > > say class { has Int $.foo is default(0) }.new.foo > > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > > > class Foo { has Int $.foo is default(0) }; say Foo.new.foo > > rakudo-moar 025ec1: OUTPUT«(Int)␤» >

[perl #131387] [TESTNEEDED] `is default` value not applied to attributes by default

2017-09-13 Thread Brian S. Julin via RT
On Tue, 12 Sep 2017 06:57:13 -0700, jn...@jnthn.net wrote: > On Sat, 27 May 2017 19:35:53 -0700, c...@zoffix.com wrote: > > $z is `Nil` without my having to assign anything, while `$!z` is Any. > > To make `$!z` Nil I also have to assign Nil to it: > > > > m: my $z is default(Nil); dd $z;class

[perl #132082] [BUG] "is default(Mu)" parse failure when used on attribute

2017-09-13 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132082] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132082 > "is default(Mu)" works fine on a variable, but run

[perl #132081] [LTA] Wrong exception type on bad attribute default values

2017-09-13 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132081] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132081 > $ perl6 -e 'my Int $a is default("foo");' ===S

[perl #129019] [BUG] Range.WHICH fails on many kinds of endpoints

2017-09-13 Thread Brian S. Julin via RT
On Wed, 13 Sep 2017 10:29:05 -0700, zef...@fysh.org wrote: > Brian S. Julin via RT wrote: > > it would be OK for there to be some tiny chance > > of a collision between two WHICH.Str's as long as the actual WHICHs > > do not collide. > > One could make that disti

[perl #129019] [BUG] Range.WHICH fails on many kinds of endpoints

2017-09-13 Thread Brian S. Julin via RT
On Wed, 30 Aug 2017 07:03:10 -0700, zef...@fysh.org wrote: > Brian S. Julin via RT wrote: > >For example "Foo^".."Bar" and "Foo"^.."Bar" would put out the same WHICH. > > Yes, and that's a bigger problem. In general Rakudo's .W

[perl #122504] [TESTNEEDED] 'return' invoked outside of a routine should throw an exception

2017-09-12 Thread Brian S. Julin via RT
On Sun, 10 Sep 2017 11:22:29 -0700, sml...@gmail.com wrote: > A `return` outside a routine now always seems to throw a run-time > error, as it should: > > $ perl6 -e 'return' > Attempt to return outside of any Routine > in block at -e line 1 > > $ perl6 -e '{ return }' > Attempt to return outs

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

2017-09-12 Thread Brian S. Julin via RT
On Tue, 12 Sep 2017 08:55:37 -0700, sml...@gmail.com wrote: > On Mon, 12 Oct 2015 05:33:13 -0700, masak wrote: > > m: my &f := &substr.assuming('hello world'); say f(0, 2); > > rakudo-moar 70a94d: OUTPUT«hello world␤» > > m: say &substr.assuming('hello world')(0, 2) > > rakudo-moar 70a94d: OUTP

[perl #129008] [BUG] Pair.perl confused by some type objects

2017-09-11 Thread Brian S. Julin via RT
On Mon, 11 Sep 2017 16:53:15 -0700, b...@abrij.org wrote: > On Mon, 11 Sep 2017 13:35:54 -0700, zef...@fysh.org wrote: > > Brian S. Julin via RT wrote: > > >Fixed in 2017.6 or thereabouts. > > > > Specifically commit c6b03c45c7173e21be6c53fc629fa27f2676c76a, dated &g

[perl #129008] [BUG] Pair.perl confused by some type objects

2017-09-11 Thread Brian S. Julin via RT
On Mon, 11 Sep 2017 13:35:54 -0700, zef...@fysh.org wrote: > Brian S. Julin via RT wrote: > >Fixed in 2017.6 or thereabouts. > > Specifically commit c6b03c45c7173e21be6c53fc629fa27f2676c76a, dated > 2017-06-15. > > -zefram Tests added in roast 9a09b4ee, resolving this ticket.

[perl #128927] [BUG] coercions don't ensure result type

2017-09-11 Thread Brian S. Julin via RT
On Sun, 14 Aug 2016 08:01:48 -0700, zef...@fysh.org wrote: > The description of coercion in S02 says: > > # The type outside the parens indicates the desired end result, and > # subsequent code may depend on it being that type. > > Rakudo does not actually ensure that the result of a coercion is

[perl #131791] Custom class :D coersers don't work

2017-09-11 Thread Brian S. Julin via RT
On Sun, 10 Sep 2017 11:44:09 -0700, b...@abrij.org wrote: > On Fri, 08 Sep 2017 21:13:59 -0700, b...@abrij.org wrote: > > On Wed, 23 Aug 2017 06:20:49 -0700, b...@abrij.org wrote: > > > On Mon, 24 Jul 2017 10:04:54 -0700, c...@zoffix.com wrote: > > > > The coercion works fine here: > > > > > > > >

[perl #130657] [LTA] Error when forgetting a colon on a colonpair in extended routine names

2017-09-11 Thread Brian S. Julin via RT
On Fri, 27 Jan 2017 16:11:28 -0800, c...@zoffix.com wrote: > Another related one (the first colonpair has empty key): > > m: sub infix:bar {} > rakudo-moar cfae23: OUTPUT«===SORRY!===␤Cannot find method > 'has_compile_time_value' on object of type NQPMu␤» Current behavior: $ perl6 -e 'sub inf

[perl #129008] [TESTNEEDED] Pair.perl confused by some type objects

2017-09-11 Thread Brian S. Julin via RT
On Fri, 19 Aug 2016 19:00:53 -0700, zef...@fysh.org wrote: > Pair.perl produces incorrect output for some type objects: > > > ((Int) => 2).perl > Int => 2 > > ((Int) => 2).perl.EVAL.perl > :Int(2) > > Following the fix for [perl #126890] it's correct for most type > objects: > > > ((Pair) => 2).

[perl #131791] Custom class :D coersers don't work

2017-09-10 Thread Brian S. Julin via RT
On Fri, 08 Sep 2017 21:13:59 -0700, b...@abrij.org wrote: > On Wed, 23 Aug 2017 06:20:49 -0700, b...@abrij.org wrote: > > On Mon, 24 Jul 2017 10:04:54 -0700, c...@zoffix.com wrote: > > > The coercion works fine here: > > > > > > 17:03 Zoffix m: class B {…}; class A { method B { B.new }}; class >

[perl #131791] Custom class :D coersers don't work

2017-09-08 Thread Brian S. Julin via RT
On Wed, 23 Aug 2017 06:20:49 -0700, b...@abrij.org wrote: > On Mon, 24 Jul 2017 10:04:54 -0700, c...@zoffix.com wrote: > > The coercion works fine here: > > > > 17:03 Zoffix m: class B {…}; class A { method B { B.new }}; class > > B > > {}; sub foo(B() $b) { say "hi" }; foo(A.new) > > 17:03 ca

[perl #131014] [BUG] multi dispatch error on signature with coerce and smiley

2017-09-07 Thread Brian S. Julin via RT
On Fri, 17 Mar 2017 13:12:19 -0700, fernandocor...@gmail.com wrote: > https://irclog.perlgeek.de/perl6/2017-03-17#i_14283289 > > 19:03 > SmokeMachine m: > class C {proto method xxx(|) {*}; multi method xxx(Str(Cool:D) $n) > {1}; > multi meth

[perl #124220] [BUG] Grammar waterbed-style issue

2017-09-07 Thread Brian S. Julin via RT
On Tue, 31 Mar 2015 13:17:41 -0700, drf...@pobox.com wrote: > OS: Ubuntu 14.04 LTS on VirtualBox > Host OS: Windows 8 > Rakudo version: Current as of 25/03/2015 > > This is a simple parser for function argument syntax. > > With this there are two surprising behaviors for the price of one. The >

[perl #127872] <&foo> [REGEX] syntax does not find &foo in the regex's own scope, only in the parent scope

2017-09-06 Thread Brian S. Julin via RT
On Sat, 09 Jul 2016 19:48:54 -0700, c...@zoffix.com wrote: > Still present in rakudo 405519 > > m: my token foo ($a) { <$a> }; > rakudo-moar 405519: OUTPUT«===SORRY!=== Error while > compiling ␤Variable '$a' is not declared␤at :1␤--> my > token foo ($a) { <⏏$a> };␤» In addition to compilin

[perl #132040] [LTA] Pointless to P5-warn on % sigil interpolation which Perl5 does not do

2017-09-06 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132040] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132040 > Since Perl5 does not interpolate %-sigiled variables in quotes,

[perl #130970] [BUG] Set.new confused by Nil

2017-09-05 Thread Brian S. Julin via RT
On Tue, 05 Sep 2017 03:21:07 -0700, zef...@fysh.org wrote: > Brian S. Julin via RT wrote: > >It is that Nil is also semantically special as a RHS of an assignment > >or as a parameter. > ... > >This is mentioned in S02. > > Some of the specialness mentioned in S02 do

[perl #130970] [BUG] Set.new confused by Nil

2017-09-04 Thread Brian S. Julin via RT
On Thu, 09 Mar 2017 12:55:58 -0800, zef...@fysh.org wrote: > Brandon Allbery via RT wrote: > >Erm. Isn't Nil a silent Failure? > > It may well represent such a thing, but it is also a reified object. > Putting objects into sets is an operation that's applicable to any kind > of object, and which (

[perl #132025] [BUG] do statement is not fully considered to be a loop

2017-09-03 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132025] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132025 > Please combine RT#124573, RT#124274, RT#124275, and RT#124276 int

[perl #113042] [BUG] [WEIRD] LTA internals-leaky error message when doing 'for our $:: ();' in Rakudo

2017-09-03 Thread Brian S. Julin via RT
On Tue, 22 Aug 2017 15:35:08 -0700, sml...@gmail.com wrote: > Is this still considered a BUG/LTA? > > Isn't the error messages it prints now (see last comment by coke) > pretty reasonable? I added a reminder to also handle anonymous vars in RT#73104. The lingering issues are just a sub-case of

[perl #73104] [BUG] There might be something wrong with the way Rakudo handles 'my $::x'

2017-09-03 Thread Brian S. Julin via RT
On Sun, 15 Jul 2012 09:00:01 -0700, bbkr wrote: > Assignment works but it fails to recognize declared variable. > > $ perl6 -e 'my $::x = 3; say $::x;' > ===SORRY!=== > Variable $x is not declared > at -e:1 > > And at the same time it is... considered declared. > > $ perl6 -e 'my $::x = 3; my $:

[perl #123978] Assignment to $*OUT might fails for empty

2017-09-03 Thread Brian S. Julin via RT
On Tue, 03 Mar 2015 23:34:02 -0800, hmbrand wrote: > $ perl6 -e 'use v6; $*OUT.nl = "\n";' > $ perl6 -e 'use v6; $*OUT.nl = "\r\n";' > $ perl6 -e 'use v6; $*OUT.nl = "\r";' > $ perl6 -e 'use v6; $*OUT.nl = "\x[2424]";' > $ perl6 -e 'use v6; $*OUT.nl = "\x[2424]\r\n";' > $ perl6 -e 'use v6; $*OUT.nl

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

2017-09-03 Thread Brian S. Julin via RT
On Mon, 06 Apr 2015 07:22:19 -0700, masak wrote: > $ perl6 -v > This is perl6 version 2015.03-170-g143f621 built on MoarVM version > 2015.03-49-gce786a1 > > $ perl6 -e '$_ = "5 breads and 2 fish"; s[(\d)] = "{$0 * 10}"; .say' > 50 breads and 2 fish > > $ cat input > 5 breads and 2 fish > $ perl6

[perl #132018] KENYA CYBER SECURITY & ETHICAL HACKING SEMINAR, 14-15 SEPTEMBER 2017, KSMS, NAIROBI KENYA

2017-09-02 Thread Brian S. Julin via RT
On Sat, 02 Sep 2017 01:30:43 -0700, ke...@techie.com wrote: > KENYA CYBER SECURITY & ETHICAL HACKING SEMINAR, 14-15 SEPTEMBER 2017, > KSMS, > NAIROBI KENYA > > Join us at this practical 2-day seminar to cement your learning and > gain a > deeper understanding of the latest cyber security threats,

[perl #123015] [RFC] methods for accessing binary data in Buf objects

2017-09-01 Thread Brian S. Julin via RT
On Mon, 20 Oct 2014 07:01:07 -0700, moritz wrote: > On Mon Oct 20 06:54:16 2014, abraxxa wrote: > > As discussed on IRC mainly with moritz I'd need a way to get the > > number of bytes, not elements, of a Buf object so it can be looped > > and > > each byte accessed with $buf.[$idx]. > > I'm requir

[perl #131996] `unhandled Failure detected in DESTROY` on `require`

2017-09-01 Thread Brian S. Julin via RT
On Wed, 30 Aug 2017 06:44:51 -0700, alexander.kiryu...@gmail.com wrote: > This one is tough. > > http://colabti.org/irclogger/irclogger_log/perl6?date=2017-08-30#l469 > - the > original conversation with Zoffix. > > https://github.com/croservices/cro/commit/11aac95b9ef94a1db43521a72ebd323f6281c20

[perl #130528] missing interpolation in postcircumfix error message

2017-09-01 Thread Brian S. Julin via RT
On Sat, 07 Jan 2017 11:33:55 -0800, gfldex wrote: > sub postcircumfix:«> <»($a){}; loop (my $i=0;$i>10;$i++) {}; > > # OUTPUT«===SORRY!=== Error while compiling ␤Unable to parse > expression in postcircumfix:sym«> <»; couldn't find final $stopper ␤at > :1␤--> rcumfix:«> <»($a){}; loop (my $i=0

[perl #132010] [NYI][REGRESSION] S metaop not implemented

2017-08-31 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #132010] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132010 > Please combine RT #124544 #124545 #124546 and #124547 into this

[perl #130451] Looping over unitialized shaped array no longer works (my @array[8]; .say for @array)

2017-08-31 Thread Brian S. Julin via RT
On Thu, 31 Aug 2017 18:09:31 -0700, b...@abrij.org wrote: > On Fri, 30 Dec 2016 03:43:02 -0800, elizabeth wrote: > > Fixed with 696b1f4, tests needed. > > > > The problem could be reduced to: > > > > (my @[1]).iterator.pull-one > > > > Somehow the binding to AT-POS-CONTAINER failed, and I wasn’t ab

[perl #130451] Looping over unitialized shaped array no longer works (my @array[8]; .say for @array)

2017-08-31 Thread Brian S. Julin via RT
On Fri, 30 Dec 2016 03:43:02 -0800, elizabeth wrote: > Fixed with 696b1f4, tests needed. > > The problem could be reduced to: > > (my @[1]).iterator.pull-one > > Somehow the binding to AT-POS-CONTAINER failed, and I wasn’t able to > find what exactly was wrong with it. So don’t use AT-POS-CONTA

[perl #126523] [BUG] Indirect symbol lookup failing

2017-08-30 Thread Brian S. Julin via RT
On Fri, 06 Nov 2015 12:11:54 -0800, barto...@gmx.de wrote: > The "Method 'Int' not found for invocant of class 'Any'" error on Moar > is gone. I changed the fudging with commit 818ec3d. > > Two of the tests are still not passing (both on Moar and JVM). I only found one test marked with this RT #

[perl #129019] [BUG] Range.WHICH fails on many kinds of endpoints

2017-08-29 Thread Brian S. Julin via RT
On Sat, 20 Aug 2016 10:24:51 -0700, zef...@fysh.org wrote: > > (:a..:b).WHICH > Range|a True..b True > > (List..Pair).WHICH > Use of uninitialized value $!min of type List in string context. > Methods .^name, .perl, .gist, or .say can be used to stringify it to > something meaningful. in block at

[perl #130181] [BUG] .WHAT.:: leaks internal exception

2017-08-29 Thread Brian S. Julin via RT
On Sat, 26 Nov 2016 10:50:44 -0800, FROGGS.de wrote: > say Int.new.WHAT.:: > > rakudo-moar 7c5ea3: OUTPUT«===SORRY!===␤MVMArray: Can't pop from an > empty array␤» > > IMO it should do the same as: > m: say Int:: > rakudo-moar 7c5ea3: OUTPUT«Int␤» > > fixed in rakudo 74ca5ce951, roast tests in

[perl #130634] Should Perl 6 be able to untangle the inclusion of the same role from different sources?

2017-08-28 Thread Brian S. Julin via RT
On Tue, 24 Jan 2017 17:11:13 -0800, raiph wrote: > Golf'd to: > > role A { method m {} } > role B does A {} > class C does A does B {} > > Method 'm' must be resolved by class C because it exists in multiple roles > (A, B) > > Note that the same issue leads also to: > > role A { has $a } > role

  1   2   >