[perl #74414] [BUG] Multiple dispatch doesn't treat 'rw' parameters as narrower than readonly parameters in Rakudo

2015-11-13 Thread jn...@jnthn.net via RT
On Tue Nov 10 07:55:06 2015, pesc...@gmail.com wrote: > On Sat Feb 22 17:37:47 2014, coke wrote: > > On Fri Apr 16 01:31:22 2010, masak wrote: > > > rakudo: multi foo(Int $x is rw) { say "writable" }; multi > > > foo(Int $x) { "readonly" }; foo(42) > > > rakudo 78faa0: OUTPUT«Ambiguous dispatch t

[perl #74646] [BUG] Multi submethods inherit (but shouldn't) in Rakudo

2015-11-13 Thread jn...@jnthn.net via RT
On Sat Apr 24 15:08:08 2010, masak wrote: > rakudo: class A { multi method foo($a) { "general" }; multi > submethod foo(Str $a) { "specific" } }; class B is A {}; say > .new.foo("OH HAI") for A, B > rakudo 55a62a: OUTPUT«specific␤specific␤» > should be "specific\ngeneral\n". > (since submethods

[perl #125783] callsame does not work more than once (callsame; callsame; callsame;)

2015-11-13 Thread jn...@jnthn.net via RT
On Mon Aug 10 17:19:45 2015, alex.jakime...@gmail.com wrote: > Code: > sub foo { say 'X' }; > &foo.wrap:{ callsame; callsame; callsame }; > foo; > > Result: > X > > I expected this: > X > X > X > Then you expected wrong. Discussion here: http://irclog.perlgeek.de/perl6/2015-11-12#i_11527573 Th

[perl #121148] [BUG] Rakudo doesn't really agree with itself on .new/nextwith semantics

2015-11-13 Thread jn...@jnthn.net via RT
On Sun Feb 02 13:28:22 2014, masak wrote: > TimToady: ok, now I'm backlogging. I see a lot of trying stuff > out, but any bug is lost in the noise. > TimToady: do you think you could rebase the bug on the > present? ;) > r: class A { submethod BUILD(:$!v){ }; has $.v; method > new(*%_) { say 'OH

[perl #113546] Duplicate flattened nameds aren't filtered out

2015-11-16 Thread jn...@jnthn.net via RT
On Sat Aug 29 03:18:43 2015, coke wrote: > On Thu Aug 21 13:12:32 2014, coke wrote: > > On Thu Jun 07 13:07:46 2012, kristofbogae...@gmail.com wrote: > > > p6: sub s_s(*%n) { %n>>.say }; s_s(|{:assoc}, :assoc); > > > # > > > which one is correct? > > > rakudo e75a0a: OUTPUT«duplicate named argumen

[perl #77788] [BUG] Can't pass in several same-named named parameters to a sub

2015-11-16 Thread jn...@jnthn.net via RT
On Mon Jun 29 13:58:37 2015, barto...@gmx.de wrote: > This works now on rakudo.jvm. On rakudo.moar 'foo(|%h, a => "c")' > doesn't give the correct result, yet: > > $ perl6-j -e 'sub foo(*%p) { say %p.perl }; foo(a => "b", a => "c")' > {:a("c")}<> > > $ perl6-j -e 'sub foo(*%p) { say %p.perl }; my

[perl #118361] Finding out long name of module fails

2015-11-17 Thread jn...@jnthn.net via RT
On Thu Jun 06 09:00:54 2013, elizabeth wrote: > [10:41:11] r: module Foo { module Bar { say $?PACKAGE } > } # shouldn't this need to say (Foo::Bar) ??? > [10:41:12] <+camelia>rakudo b2072f: OUTPUT«(Bar)␤» > [10:53:53] TimToady: do you have an opinion on "module > Foo { module Bar {

[perl #125783] callsame does not work more than once (callsame; callsame; callsame;)

2015-11-17 Thread jn...@jnthn.net via RT
On Fri Nov 13 09:05:08 2015, jn...@jnthn.net wrote: > This ticket did uncover that there isn't a way to actually do what you > wanted, though, so we have nextcallee, which does. I've added a test > for that in S12-methods/defer-call.t. The remaining open question I've > asked (waiting for answer) i

[perl #119427] [BUG] Rakudo doesn't parse @a[10] as a shaped array in a signature (but STD.pm6 does)

2015-11-18 Thread jn...@jnthn.net via RT
On Sat Jan 03 08:12:50 2015, barto...@gmx.de wrote: > Nowadays @a[10] in a signature is parsed as a shaped array (and gives > a fitting error message since shape declaration is NYI): > > $ perl6 -e 'sub foo(@a[10]) { }' > ===SORRY!=== Error while compiling -e > Shape declaration is not yet impleme

[perl #119193] [BUG] $obj.*method() doesn't care about multi methods in Rakudo

2015-11-19 Thread jn...@jnthn.net via RT
On Wed Aug 07 08:51:34 2013, masak wrote: > I've never put it down into words, but I'm disappointed at > where we ended up with things like $obj.*method() > it turns out that there are two axes along which there can be > "several methods": the mro axis and the multi axis. > the .* syntax picked

[perl #123347] $*OUT.t fails

2015-11-19 Thread jn...@jnthn.net via RT
On Wed Dec 03 06:50:20 2014, coke wrote: > On Tue Dec 02 07:03:30 2014, sml...@gmail.com wrote: > > It works on Parrot, but on Moar it dies: > > > > m: say $*OUT.t > > rakudo-moar 91d899: OUTPUT«Cannot find method 'isatty': no > > method cache and no .^find_method␤ in method t at src/gen/m- > >

[perl #124017] [BUG] Shouldn't be allowed to declare a class called `Foo:D` in Rakudo

2015-11-19 Thread jn...@jnthn.net via RT
On Sat Aug 29 03:41:10 2015, coke wrote: > On Sun Mar 08 07:10:57 2015, masak wrote: > > m: class Foo:D {}; say Foo.new > > rakudo-moar 459c63: OUTPUT«Foo.new()␤» > > * masak submits rakudobug > > (the bug being that that `:D` is allowed on a class declaration) > > More data: > > 06:40 < [Coke

[perl #75002] [TODO] Shaped variables

2015-11-20 Thread jn...@jnthn.net via RT
On Tue May 29 12:02:02 2012, diakopter wrote: > Well, it now outputs: > > 14:01 r: https://gist.github.com/2830046 > 14:01 rakudo e2d876: OUTPUT«===SORRY!===␤Shaped variable > declarations not yet >implemented. Sorry. ␤at /tmp/0vgPqDbaIV:1␤» Shaped arrays, both object and nativ

[perl #72580] [BUG] Bool enum values don't smartmatch against Int in Rakudo

2015-11-23 Thread jn...@jnthn.net via RT
On Thu Nov 15 05:08:56 2012, bbkr wrote: > 2012.10 - still broken > > $ perl6 -e 'enum X ; say a ~~ Int; say True ~~ Int' > True > False Fixed now; nine++ did the majority of the hard work, and I cleaned up the last few issues just now and merged the work and spectest updates, including coverag

[perl #74900] [BUG] A definite nothing should be narrower than two possible somethings in Rakudo

2015-11-23 Thread jn...@jnthn.net via RT
On Tue May 04 13:49:19 2010, masak wrote: > the lack of an argument counts as narrower than a slurpy. > but what about a single optional? > rakudo: multi foo() { say "OH HAI" }; multi foo(Int $a?) {}; > multi foo(Str $a?) {}; foo > rakudo 1eef08: OUTPUT«Ambiguous dispatch to multi 'foo'. > Ambi

[perl #125196] [BUG] Variable scopes with 'start' block

2015-11-23 Thread jn...@jnthn.net via RT
On Thu May 14 12:49:54 2015, tony.od...@live.com wrote: > CODE: > - > my $promise = start { sleep 1; $*E.say;}; > my $*E = 5; > await $promise; > - > EXPECTED: > - > 5--

[perl #125621] Uncaught exceptions in Supply.tap are silenced

2015-11-24 Thread jn...@jnthn.net via RT
On Wed Jul 15 21:09:12 2015, r...@hoelz.ro wrote: > See the attached file. > > The code in the attached file should make some indication that > something in the code called provided to Supply.tap is going wrong, > but the execution completes silently. The exceptions got lost due to a thinko in th

[perl #123477] Supply.done doesn't seem to terminate anything

2015-11-26 Thread jn...@jnthn.net via RT
On Mon Dec 22 06:37:08 2014, moritz wrote: > moritz> m: my $s = Supply.new; $s.tap(&say); $s.done; $s.emit('still here') > camelia> rakudo-moar 284c09: OUTPUT«still here␤» > > This is likely a bug; .done should either shut down the supply (and so > forbid future .emit calls), or at least throw ou

[perl #115608] [BUG] Cannot call a routine using 'foo' syntax when a module 'foo' is declared in Rakudo

2015-11-26 Thread jn...@jnthn.net via RT
On Mon Nov 05 09:39:33 2012, masak wrote: > module foo; sub foo() { say "OH HAI" }; foo; foo() > In this one, foo() parses as a coercion. > jnthn: oh! > * masak adds that to the appropriate rakudobug > Anyway, it's right it doesn't call the sub. Just an LTA error I > guess...though I ain't imm

[perl #113892] "Day(1)" is ambiguous if both "enum Day" and "sub Day" are defined.

2015-11-26 Thread jn...@jnthn.net via RT
On Thu Jun 28 14:04:34 2012, sirrob...@gmail.com wrote: > From #perl6: > > 16:53 < moritz> r: module A { enum Day is export ; sub Day is > export { 'sub Day' } }; import A; say Day(0); > 16:53 <+p6eval> rakudo 39087a: OUTPUT«Mon␤» > > > In my opinion, priority should go to the sub, for what it's

[perl #125515] [BUG] Proc::Async stdout does not tap output in its entirety.

2015-11-27 Thread jn...@jnthn.net via RT
On Tue Jun 30 01:02:15 2015, liu...@360.cn wrote: > https://gist.github.com/anonymous/79a7e59cf3160f6ac09e > > 07:31 kanlrepeating a previous question, is it by design or a > bug that Proc::Async stdout does not tap output in its entirety? ( i > thought it's neither ) > 07:32 moritz kanl:

[perl #122318] IO::Socket::Async spectest fails sometimes

2015-11-27 Thread jn...@jnthn.net via RT
On Mon Aug 04 02:02:35 2014, elizabeth wrote: > On 04 Aug 2014, at 01:58, Will Coleda via RT follo...@perl.org> wrote: > > On Thu Jul 17 11:06:20 2014, FROGGS.de wrote: > >> perl6-m t/spec/S32-io/IO-Socket-Async.t > >> 1..6 > >> ok 1 - Async listen on bogus hostname > >> ok 2 - Async connect to un

[perl #116288] Socket read does not "returns $bytes bytes".

2015-11-27 Thread jn...@jnthn.net via RT
On Thu Jan 10 04:43:32 2013, moritz wrote: > On Sat Jan 05 01:10:17 2013, FROGGS.de wrote: > > So if somebody doesnt know the chunk size, (s)he will be unable to use > > read() at all. _If_ you know the chunk size you can say: > > > > last if $data < $chunk-size > > If one doesn't know how much

[perl #126315] IO::Socket::INET: a way to read 1 packet

2015-11-27 Thread jn...@jnthn.net via RT
On Fri Oct 09 16:51:39 2015, tokuhirom wrote: > When I'm implementing a http client, I need to read 1 packet data > without expecting size. In socket programming context, this case is > generic requirement. > This is what recv does. > In rakudo's src/core/IO/Socket.pm. It calls nqp::readfh. > >

[perl #123949] Inconsistent APIs for IO::Socket::Async and Proc::Async

2015-11-27 Thread jn...@jnthn.net via RT
Hi, I wrote these issues up in a gist: https://gist.github.com/jnthn/9d8b2e22882d7f7a871e They got some discussion on channel, and the decisions implemented. On Wed Mar 04 01:08:29 2015, moritz wrote: > On 27.02.2015 23:57, Elizabeth Mattijsen wrote: > >> On 27 Feb 2015, at 17:24, Moritz Lenz (

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

2015-11-28 Thread jn...@jnthn.net via RT
On Sun Oct 11 03:11:45 2015, n...@detonation.org wrote: > The endless loop is a bootstrap issue. It starts with routine_def: > if $ { > # Protect with try; won't work when declaring the initial > # trait_mod proto in CORE.setting! > try $*W.apply_trait($/

[perl #123757] [GLR] [BUG] positional attributes initialized via .new are assigned as a list (with flattening) instead of bound

2015-11-28 Thread jn...@jnthn.net via RT
On Sun Feb 08 01:22:03 2015, rayd...@cyberuniverses.com wrote: > ... > 06:11:09 TimToady | hmm > 06:11:42 TimToady | m: class Foo { has @.bar }; say Foo.new( bar => > [1,2,3] ).bar.elems > 06:11:43 +camelia | rakudo-moar d26211: OUTPUT«3␤» > 06:12:20 TimToady | but apparently loses the item

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

2015-11-29 Thread jn...@jnthn.net via RT
On Sun Nov 29 02:54:14 2015, pesc...@gmail.com wrote: > On Fri Sep 04 09:13:10 2015, masak wrote: > > m: sub foo( Str &b:(Bool --> Int) ) { say "alive" }; > > foo( sub (Bool) { 42 } ) > > rakudo-moar e6f360: OUTPUT«Type check failed in binding &b; > > expected 'Callable[Str]' but got 'Sub'␤ in s

[perl #124316] @a[0,1] is not the same as @a[^2]

2015-12-01 Thread jn...@jnthn.net via RT
On Thu Apr 16 09:50:05 2015, elizabeth wrote: > Slicing handles ranges differently from lists, even if the range is > not infinite. > > > my @a; > say @a[0,1].perl;# (Any,Any) > say @a[^2].perl; # () > > > This becomes even more troublesome when used as a left value: > > @a[0,1] = 42,4

[perl #123732] [BUG] `return` in a NEXT phaser in a loop outside of any routine aborts the iteration in Rakudo

2015-12-01 Thread jn...@jnthn.net via RT
On Wed Feb 04 18:18:09 2015, masak wrote: > m: for ^5 { .say; NEXT { return } } > rakudo-moar 613c0b: OUTPUT«0␤1␤2␤3␤4␤» > that last one, besides wrongly compiling (IMO), did not have > the wrong runtime semantics I expected it to. > m: say "A"; return; say "B" > rakudo-moar 613c0b: OUTPUT«A␤»

[perl #123731] [BUG] `last` inside a `NEXT` phaser in a loop does not abort the loop

2015-12-02 Thread jn...@jnthn.net via RT
On Wed Feb 04 17:58:57 2015, masak wrote: > m: for ^5 { .say; NEXT { last } } > rakudo-moar 613c0b: OUTPUT«0␤1␤2␤3␤4␤» > bug? > * masak submits rakudobug for `last` in a `NEXT` not exiting the for loop > m: my $c = 3; while $c { say $c--; NEXT { last } }; > rakudo-moar 613c0b: OUTPUT«3␤2␤1␤»

[perl #121147] The last bug

2015-12-02 Thread jn...@jnthn.net via RT
On Sun Feb 02 11:20:48 2014, m...@kli.org wrote: > perl6: my $i=0; while $i < 6 { FIRST { say "Here"; last }; say > $i++ } > rakudo-moar 535d91: OUTPUT«0␤1␤2␤3␤4␤5␤» > ..niecza v24-109-g48a8de3: > OUTPUT«===SORRY!===␤␤Action method > statement_prefix:FIRST not > yet implemented

[perl #125400] Fwd: problem pushing pairs onto an array of pairs

2015-12-03 Thread jn...@jnthn.net via RT
On Mon Jun 15 06:12:13 2015, mt1...@gmail.com wrote: > On 06/13/2015 04:06 PM, Elizabeth Mattijsen (via RT) wrote: > > Hi, > May I react on this? Would it be easier to have perl6 throw an error > when there is a named parameter in the call while it isn't defined in > the method. Something like

[perl #123519] earliest { ... } uses busy waiting when used with more than one channel, drives CPU usage up to 100%

2015-12-05 Thread jn...@jnthn.net via RT
On Tue Jul 07 13:44:33 2015, voegelas wrote: > On Mon Dec 29 10:32:42 2014, r...@hoelz.ro wrote: > > See also https://rt.perl.org/Ticket/Display.html?id=123515 > > The attached script demonstrates the busy waiting. The script also > leaks memory. In the output of top(1) the CPU is always at 100% a

[perl #124016] Rakudo inappropriately uses .gist for caching "is cached" sub arguments; needs proper solution

2015-12-11 Thread jn...@jnthn.net via RT
On Sun Mar 08 07:02:33 2015, sml...@gmail.com wrote: > In current Rakudo, the 'is cached' trait for routines compares > incoming argument lists by their .gist representation. This was > probably done as a temporary work-around, and is not a satisfactory > solution because: > > * .gist elides infor

[perl #125731] ^roles does not always list all of the roles

2015-12-11 Thread jn...@jnthn.net via RT
On Fri Jul 31 13:09:04 2015, alex.jakime...@gmail.com wrote: > Code: > role A { }; > role B does A { }; > B.new.^roles.say; > > Result: > (B) > > As skids points out, the expected result should be "(A) (B)" or "(B::A) > (B)". > We used to, by default, give the non-transitive view of the done ro

[perl #126379] Giving Supply.tap a block with the wrong signature silently fails

2015-12-12 Thread jn...@jnthn.net via RT
On Sat Oct 17 06:05:10 2015, r...@hoelz.ro wrote: > Possibly related to #125782. > > If you run this code: > > Supply.interval(1).tap(-> { say 'hi' }); > sleep 5; > > ...you get no input, because the block provided to tap is argless. > The signature verification failure is silently swallowed. F

[perl #126454] [BUG] Channel: earliest $channel { ... } does not go away at end of scope

2015-12-12 Thread jn...@jnthn.net via RT
On Sun Oct 25 17:25:56 2015, zengargo...@gmail.com wrote: > This is perl6 version 2015.10-16-g2f4bfd8 built on MoarVM version > 2015.10 > > https://gist.github.com/zengargoyle/5324c93684d6f5a376a3 > > for 1,1,2,2 -> $num, $value { >... stuff ... > loop { > earliest $channel { > more * {

[perl #126535] [BUG] - FIRST phaser not firing in while loop

2015-12-12 Thread jn...@jnthn.net via RT
On Sun Nov 01 17:37:23 2015, zengargo...@gmail.com wrote: > No gist for this, simple: > > 17:29 < zengargoyle> m: my $x = True; while $x { FIRST { say "first" > }; LAST { say "last" }; $x = False; } > 17:29 <+camelia> rakudo-moar 1051fc: OUTPUT«last␤» > > FIRST phaser does not fire in a while loo

[perl #126581] [BUG] cannot call multis in the same class with .*

2015-12-12 Thread jn...@jnthn.net via RT
On Fri Nov 06 15:10:05 2015, rayd...@cyberuniverses.com wrote: > calling multis in the same class with .* doesn't work: > 22:10 raydiak m: class C { multi method m () { "A" }; multi method m > () { "B" } }; C.*m > 22:10 camelia rakudo-moar 5fda5d: OUTPUT«Ambiguous call to 'm'; > these signature

[perl #126631] Stub code or “fail” exits silently

2015-12-12 Thread jn...@jnthn.net via RT
On Fri Nov 13 09:53:04 2015, alex.jakime...@gmail.com wrote: > Code: > fail; say 'hello' > > Or this code: > …; say 'hello' > > Result: > no output > > > Which was noticed when I did this accidentally: > my @a = 1, 2 …… *; say 'hello'; > > > shouldn't be throwing that away > > Yeah, perhaps

[perl #126708] Grammar.parse does not ignore unknown named args

2015-12-12 Thread jn...@jnthn.net via RT
On Sun Nov 22 10:58:57 2015, b...@abrij.org wrote: > > This is a regression since star09 which make Grammar more tedious to > subclass. > > (01:52:42 PM) skids: m: grammar foo { rule TOP { . } }; > foo.parse("foo",:subclass_arg_to_ignore) > (01:53:02 PM) camelia: rakudo-moar : OUTPUT«Unexpected

[perl #126507] [BUG] %h{Any} doesn't behave as expected

2015-12-12 Thread jn...@jnthn.net via RT
On Fri Oct 30 19:08:56 2015, zengargo...@gmail.com wrote: > Tests at: > https://gist.github.com/zengargoyle/5ba20a3c5799327b44d0 > > my %h{Any}; > my $i = (1,2,3); > %h{$i} = 'foo'; > %h{$i}:exists # (False, False, False) > %h.EXISTS-KEY($i) # True > > :exists causes $I to slice. Turns out othe

[perl #123808] [BUG] qqw{} and qqww{} flattening behaviour doesn't match

2015-12-12 Thread jn...@jnthn.net via RT
On Tue Nov 17 12:23:28 2015, coke wrote: > Current situation: > > 15:20 < jnthn> m: my $a = 42; say <<$a b c>>; > 15:20 <+camelia> rakudo-moar 7c6a55: OUTPUT«(42 b c)␤» > 15:21 < jnthn> m: my $a = 42; say qqww{$a b c}; > 15:21 <+camelia> rakudo-moar 7c6a55: OUTPUT«(42 b c)␤» > 15:21 < jnthn> m: my

[perl #126606] [BUG] Can't call .WHICH on Iteratable or Iterator due to accidental punning

2015-12-12 Thread jn...@jnthn.net via RT
On Mon Nov 09 22:21:58 2015, larry wrote: > 21:25 < TimToady> m: say Iterable === Any > 21:25 <+camelia> rakudo-moar 2ad739: OUTPUT«Method 'iterator' must be > implemented by Iterable because it is required by a role␤ in any > compose_method_table at gen/moar/m-Metamodel.nqp:2661␤

[perl #126728] Match using the wrong class

2015-12-13 Thread jn...@jnthn.net via RT
On Wed Nov 25 02:47:48 2015, mt1...@gmail.com wrote: > Following code generates 'P6opaque: must compose before allocating'. > > package P { >class Regex { > has Int $.n; > submethod BUILD ( Str :$n ) { >die 'Not that one!!!' if $n ~~ m/^ '666' $/; >$!n = $n.Int; >

[perl #126799] Reversing, rotating, sorting fixed-dimension arrays

2015-12-13 Thread jn...@jnthn.net via RT
On Thu Dec 03 18:14:29 2015, alex.jakime...@gmail.com wrote: > Code: > my @a[3]; say @a.reverse > > Result: > Cannot reverse a fixed-dimension array > in block at -e:1 > > > It may be more complicated for multi-dimensional arrays, but reversing a > 1-dimensional is rather straightforward. The

[perl #126424] Iterators that don't use pull-one, lose containers

2015-12-13 Thread jn...@jnthn.net via RT
On Wed Oct 21 15:40:57 2015, elizabeth wrote: > # this internally uses .push-at-least > $ 6 'my $l = gather { take-rw my $ = 1 }; $l.AT-POS(0) = 42' > Cannot modify an immutable Int > in block at -e:1 > > # this internally uses .pull-one > $ 6 'my $l = gather { take-rw my $ = 1 }; for @$l { $_

[perl #126212] [BUG] SEGV on 16-bit-sized arg insertion

2015-12-14 Thread jn...@jnthn.net via RT
On Tue Sep 29 01:40:18 2015, mt1...@gmail.com wrote: > On 09/28/2015 06:52 PM, Larry Wall (via RT) wrote: > > # New Ticket Created by Larry Wall > > # Please include the string: [perl #126212] > > # in the subject line of all future correspondence about this issue. > > # https://rt.perl.org/Ticke

[perl #126541] Expose native file descriptor for handle like objects.

2015-12-14 Thread jn...@jnthn.net via RT
On Mon Nov 02 10:54:27 2015, jns...@gellyfish.co.uk wrote: > Hi, > In a number of places in the design documents it is suggested that > certain functionality on files (e.g. fcntl, ioctl) or sockets (e.g. > getsockname, setsockopt) should be provided by external modules via > the NativeCall interfac

[perl #126846] [NYI] UDP sockets is not implemented

2015-12-14 Thread jn...@jnthn.net via RT
Support for UDP has now been added to IO::Socket::Async, and tests covering it are in S32-io/IO-Socket-Async-UDP.t.

[perl #126522] The X and Z metaops don't respect Scalar containers as part of the 'single argument rule'

2015-12-15 Thread jn...@jnthn.net via RT
On Sat Oct 31 14:12:36 2015, sml...@gmail.com wrote: > S07 [https://github.com/perl6/specs/blob/master/S07-lists.pod] claims: > > "The single argument rule does respect Scalar containers." > "The single argument rule is implemented consistently throughout the > language." > > It lists 'for', '.pu

[perl #126583] [BUG] Access to :ver :auth on class doesn't work

2015-12-15 Thread jn...@jnthn.net via RT
On Sat Nov 07 09:34:18 2015, jns...@gellyfish.co.uk wrote: > class F:ver {}; say F.^ver; > > Method 'gist' not found for invocant of class 'NQPMu' > in block at -e:1 > > class F:auth {}; say F.^auth; > > Method 'gist' not found for invocant of class 'NQPMu' > in block at -e:1 > > They see

[perl #126576] `SEQUENCE xx N` does not preserve structure

2015-12-15 Thread jn...@jnthn.net via RT
On Thu Nov 05 23:02:55 2015, sml...@gmail.com wrote: > When the LHS expression of xx is a List, the nested structure of the > result is preserved: > > ➜ dd (2, 4, 6) xx 2 > List $var = $((2, 4, 6), (2, 4, 6)) > > However when the LHS is a Seq returned from .pick or .map or similar, > the > resul

[perl #112666] [BUG] .clone not doing the right kinda thing with arrays in Rakudo

2015-12-15 Thread jn...@jnthn.net via RT
On Wed Nov 18 06:24:03 2015, pesc...@gmail.com wrote: > On Sun Oct 18 04:50:28 2015, n...@detonation.org wrote: > > 13:49 <+yoleaux> 17 Oct 2015 17:45Z nine: IIRC, it was .clone > > not being deep enough, but I don't remember exactly either :( > > 13:49 <+yoleaux> 17 Oct 2015 17:45Z nine: Maybe n

[perl #126359] [BUG] deconfuse language name and compiler in -v and -V

2015-12-15 Thread jn...@jnthn.net via RT
On Wed Oct 14 10:10:14 2015, larry wrote: > On Wed Oct 14 09:46:18 2015, larry wrote: > > 09:39 < TimToady> HLL::Compiler is very confused about what is the > > language > > name/version vs compiler name/version, and this shows up in both -v > > and -V > > 09:40 < TimToady> "This is perl6 version

[perl #122259] Obscure wrapping fails

2015-12-15 Thread jn...@jnthn.net via RT
On Wed Jul 09 10:44:32 2014, elizabeth wrote: > Sorry, but apart from just quoting the test code, I can’t really > describe what is wrong with these tests. So I create this ticket to > be able to refer to it in todo for the failing tests. > > t/spec/S06-advanced/wrap.rakudo.moar (Wstat: 0 Tests:

[perl #126626] my with parens should allow SSA binding at least one of these ways

2015-12-16 Thread jn...@jnthn.net via RT
On Thu Nov 12 11:41:16 2015, larry wrote: > > p6 'my ($a, \b) = 1, 2; say $a; say b;' > 1 > (Any) > > p6 'my ($a, \b) := 1, 2; say $a; say b;' > 1 > (Any) These two now work. Tests in S04-declarations/my.t.

[perl #126881] Newline handling is broken on Windows

2015-12-16 Thread jn...@jnthn.net via RT
On Fri Dec 11 09:31:44 2015, na...@cpan.org wrote: > 64-bit Windows 10.0.10586. 64-bit perl6 on MoarVM built using MS > Visual Studio 2013 tools. See below for more details. > > I noticed[1] that several tests fail if the test script has Unix line > endings instead of Windows. These tests succeed

[perl #126881] Newline handling is broken on Windows

2015-12-16 Thread jn...@jnthn.net via RT
On Fri Dec 11 09:31:44 2015, na...@cpan.org wrote: > 64-bit Windows 10.0.10586. 64-bit perl6 on MoarVM built using MS > Visual Studio 2013 tools. See below for more details. > > I noticed[1] that several tests fail if the test script has Unix line > endings instead of Windows. These tests succeed

[perl #124005] Cannot read from STDIN in a thread on windows console

2015-12-16 Thread jn...@jnthn.net via RT
On Fri Nov 20 10:21:26 2015, nicholas wrote: > MoarVM work towards fixing this bug is on the MoarVM branch sync-without-uv Having already ran into various "fun" platform inconsistencies working on that branch, I've concluded that - while I agree this issue wants fixing - it's not something that

[perl #122658] [NYI] PRE submethods in a class don't check instance preconditions in Rakudo

2015-12-16 Thread jn...@jnthn.net via RT
On Sat Aug 30 21:18:35 2014, masak wrote: > m: class IncList { has @.values; submethod PRE { @!values eqv > @!values.sort } }; say IncList.new(:values(1, 5, 3)) > rakudo-moar 5f9cd5: OUTPUT«IncList.new(values => > Array.new(1, 5, 3))␤» > * masak submits NYI rakudobug > m: say [1, 5, 3] eqv [1, 5

[perl #74902] [BUG] Rakudo allows assignment to elements of a readonly array... except when it doesn't

2015-12-16 Thread jn...@jnthn.net via RT
On Thu Aug 27 09:22:02 2015, masak wrote: > [Coke]: no. > [Coke]: I think you misunderstood the goal of the ticket. > [Coke]: the spec said (and still *says*, I think) that the > *contents* of the array parameter are readonly. that's what the "one > level down" thing refers to. > [Coke]: Howeve

[perl #124084] Must initialize num/num32/num64 ?

2015-12-17 Thread jn...@jnthn.net via RT
On Mon Mar 16 05:09:58 2015, elizabeth wrote: > my num $a; say $a > NaN > my num32 $a; say $a > 0 > my num64 $a; say $a > NaN > Fixed, and test in S02-types/native.t unfudged. Also added a load of related tests.

[perl #124294] [BUG] uint32 behaving like int64

2015-12-18 Thread jn...@jnthn.net via RT
On Mon Apr 13 16:42:11 2015, grond...@yahoo.fr wrote: > Hello > > $ perl6 -e 'say my uint32 $ = 2**32;' > 4294967296 > $ perl6 -e 'say my uint32 $ = 2**64;' > 0 > $ perl6 -e 'say my uint32 $ = 2**63;' > -9223372036854775808 > $ perl6 -e 'say my uint32 $ = 2**62;' > 4611686018427387904 > > $ perl6

[perl #64766] Possibly inconsistent behaviour in mixing-in of 'handles'

2015-12-18 Thread jn...@jnthn.net via RT
On Thu Apr 16 06:23:35 2009, masak wrote: > OH HAI from NPW::2009. > > In Rakudo 2c13d6c, the 'handles' instruction on attributes in roles > don't override those of the class it mixes in. > > $ perl6 -e 'class A { method foo { say "OH HAI" }; method aie { say > "AIE!" } }; role B { has A $.bar ha

[perl #114946] [BUG] function parameters aren't readonly *aliases*

2015-12-18 Thread jn...@jnthn.net via RT
On Mon Sep 17 09:34:45 2012, nicholas wrote: > Well, I don't think that I'm doing anything stupid here, but it's > always > a possibility. > > Surely if function parameters are readonly *aliases* to the argument > passed to the function, then they should see modifications made to > that > argument

[perl #78676] [BUG] Using the special ClassName{ :key($value) } syntax inside .new doesn't work in Rakudo

2015-12-18 Thread jn...@jnthn.net via RT
On Thu May 07 02:51:39 2015, FROGGS.de wrote: > class Foo { has $.x is rw }; class Bar is Foo { }; my Foo $u .= > new(:5x); say $u.x; $u = Bar.new(Foo{:12x}); > rakudo-moar a34d02: OUTPUT«5␤Default constructor for 'Bar' only takes > named arguments␤ in block at /tmp/FrBrn8xOI_:1␤␤» > > I guess t

[perl #126987] LTA error message when trying to use parens to declare enums (enum Animal (Cat, Dog))

2015-12-23 Thread jn...@jnthn.net via RT
On Tue Dec 22 05:30:41 2015, alex.jakime...@gmail.com wrote: > Code: > enum Animal (Cat, Dog) > > Result: > ===SORRY!=== > Cannot invoke this object > > > Well, the error message is not so good, but you can say “who is going to do > that anyway?”. Well, consider this: > > Code: > enum Animal (C

[perl #127236] Attribute.package is wrong for attributes declared inside roles

2016-01-11 Thread jn...@jnthn.net via RT
On Mon Jan 11 05:46:19 2016, lloyd.fo...@gmail.com wrote: > role Foo { has $.foo; }; Foo.^attributes[0].package.^name.say #->$?CLASS Just to note that this behavior is intentional rather than accidental (or at least, *I* intended it :-)). Roles undergo generic instantiation at the point of being

[perl #127167] .^add_method does not work for Role anymore

2016-01-11 Thread jn...@jnthn.net via RT
On Tue Jan 05 03:20:59 2016, moritz wrote: > On Tue Jan 05 02:54:22 2016, gfldex wrote: > > role R {}; R.^add_method('foo', method (){}) > > > > # OUTPUT«Method 'add_method' not found for invocant of class > > 'Perl6::Metamodel::ParametricRoleGroupHOW'␤ in block at > > /tmp/ORnhrivIvq line 1␤» >

[perl #127282] [LTA] backtraces could print all the arguments to all the routines

2016-01-17 Thread jn...@jnthn.net via RT
On Fri Jan 15 11:56:17 2016, alex.jakime...@gmail.com wrote: > This bug report is a continuation of > https://rt.perl.org/Ticket/Display.html?id=127281 > > > while we're at it, let's make backtraces print all the arguments > to all the routines... > well, the short ones, anyway > > > That wou

[perl #127305] EXPORT ignored when unit module/package is used

2016-01-18 Thread jn...@jnthn.net via RT
On Sun Jan 17 22:29:57 2016, gfldex wrote: > # https://gist.github.com/b0d44595e0d3b314a09d > > # Module.pm6 > unit module Module; > > sub EXPORT ($var) { > { foo => sub () {} } > } > > # use-module.p6 > > use v6; > use lib '.'; > use Module 42; > > # OUTPUT: > # Error while importing

[perl #127340] no line number on error

2016-01-23 Thread jn...@jnthn.net via RT
On Sat Jan 23 07:08:17 2016, mt1...@gmail.com wrote: > On 01/21/2016 06:44 PM, mt1957 wrote: > > On 01/21/2016 06:35 PM, mt1957 (via RT) wrote: > >> # New Ticket Created by mt1957 > >> # Please include the string: [perl #127340] > >> # in the subject line of all future correspondence about this i

[perl #127315] Can't call .new(|%data) on a class with a @.attribute

2016-01-24 Thread jn...@jnthn.net via RT
On Wed Jan 20 10:44:39 2016, elizabeth wrote: > > On 19 Jan 2016, at 15:05, Peter Pentchev (via RT) > follo...@perl.org> wrote: > > > > # New Ticket Created by Peter Pentchev > > # Please include the string: [perl #127315] > > # in the subject line of all future correspondence about this issue.

[perl #127528] [BUG] Regex Capture groups contain ??

2016-02-14 Thread jn...@jnthn.net via RT
On Fri Feb 12 08:33:56 2016, m...@boris-moebus.de wrote: > Version > >>perl -v > This is Rakudo version 2016.01.1 built on MoarVM version 2016.01 > implementing Perl 6.c. > > Behaviour: > > say so 'abc' ~~ / (\w+) . /; > True > > $0 > ?ab? > > Should be (last two lines): > >$0 > ab > The behavio

[perl #127631] typing last in the REPL exits the REPL

2016-03-02 Thread jn...@jnthn.net via RT
On Sun Feb 28 21:47:37 2016, r...@hoelz.ro wrote: > I would expect a "last without loop construct" error instead. It's a read-eval-print-*loop*, so it turns out you actually are in a loop construct and end up exiting that! :-) We can likely get the behavior you're after though, which I think mak

[perl #127548] [BUG] Using a native type as attribute in a class can crash de compiler

2016-03-02 Thread jn...@jnthn.net via RT
On Mon Feb 15 15:31:50 2016, sortiz wrote: > use NativeCall; class MV is repr('CStruct') { has uint64 $.start; > method s { if $!start {} } } # Fails > > use NativeCall; class MV is repr('CStruct') { has uint64 $.start; > method s { if +$!start {} } } # This works :/ > > > From IRC: > > And t

[perl #127660] submethod Bool isn't called when object used in Boolean context

2016-03-09 Thread jn...@jnthn.net via RT
On Fri Mar 04 21:02:59 2016, lloyd.fo...@gmail.com wrote: > class A { submethod Bool { True } }; say A || "lose" #-> lose > class A { method Bool { True } }; say A || "lose" #-> # (A) > > It looks like we have places where the .^submethod_table is ignored > > https://github.com/rakudo/rakudo/blob

[perl #127665] [BUG] attribute accessors made by generate_accessor are not marked "rw"

2016-03-09 Thread jn...@jnthn.net via RT
On Sun Mar 06 12:18:56 2016, jns...@gellyfish.co.uk wrote: > The accessor methods that are generated for rw attributes function > correctly but are not actually marked 'rw': > > class F { has $.foo is rw }; say F.^lookup("foo").rw # False > > Whereas they did prior to generate_accessor being used

[perl #127629] Supply.Channel gets ".quit" instead of ".fail"ed when original Supply is quit

2016-03-09 Thread jn...@jnthn.net via RT
On Sun Feb 28 19:50:40 2016, b...@abrij.org wrote: > $ perl6 -e 'my $r = Supplier.new; my $s = $r.Supply; my $c = > $s.Channel; start { for @$c { "got $_".say }; 42.say; }; sleep 0.5; > for 1..4 { $r.emit($_); sleep 0.5 }; $r.quit(X::AdHoc.new(:message)); > sleep 1;' > got 1 > got 2 > got 3 > got 4

[perl #127530] [BUG] segv on attempt to print certain CJK characters

2016-03-09 Thread jn...@jnthn.net via RT
On Fri Feb 12 13:35:21 2016, larry wrote: > 10:41 < TimToady> m: say "𢡊" > 10:41 <+camelia> rakudo-moar 691b39: OUTPUT«(signal SEGV)» > 10:42 < TimToady> jnthn: ^^ there's another glitch :) > 10:43 < timotimo> can you also make that with a \x literal, so that i can > more easily copy-paste it? > 10

[perl #127272] [BUG] Weird optimization in {l,g}e string comparison operators.

2016-03-14 Thread jn...@jnthn.net via RT
On Thu Jan 14 09:04:47 2016, darek.cidlin...@atlas.cz wrote: > In large loops, "le" and "ge" operators eventually start to give False > on equality. > > MWE: > > say ("a" xx 1000).map(+("a" le *)).index(0) > 414 > > Expected output: > Nil > > Compiler version (perl6 -v): > This i

[perl #127784] Assigning multiple values to an array does not work with infinite ranges (@a[^∞] = 42)

2016-03-30 Thread jn...@jnthn.net via RT
On Fri Mar 25 11:53:59 2016, alex.jakime...@gmail.com wrote: > Let's start with an example that works: > > Code: > my @a; > @a[^8] = 5, 6; > say @a > > Result: > [5 6 (Mu) (Mu) (Mu) (Mu) (Mu) (Mu)] > > That's fine. But let's try an infinite range now: > > Code: > my @a; > @a[^∞] = 5, 6; > say @

[perl #126756] [SEGV] on single utf8-c8 synthetic

2016-04-01 Thread jn...@jnthn.net via RT
On Sat Nov 28 06:22:27 2015, elizabeth wrote: > [15:04:37] m: Buf.new(0xFE).decode("utf8-c8") # jnthn > might find this interesting > [15:04:38] <+camelia> rakudo-moar 6a45fe: OUTPUT«(signal SEGV)» > [15:08:24] lizmat: Uh, yes...wtf... > [15:08:30] lizmat: Please RT it > > I t

[perl #127748] [SEGV] Newbie code segfaults

2016-04-01 Thread jn...@jnthn.net via RT
On Sun Mar 20 06:39:39 2016, elizabeth wrote: > == > my $a = 14; > while (True) { > my $z = (2..13).first(-> $x { !($a %% $x) }); > last if (!$z); > $a += 14 > } > say $a > == > > The above code “verbatim” segfaults on OS X and Linux on H

[perl #127227] [PERF] `<{...}>` in regex leaks memory

2016-04-08 Thread jn...@jnthn.net via RT
On Sat Jan 09 12:20:11 2016, siavash.askari.n...@gmail.com wrote: > > I experienced this problem in this code: > $_ = "abcdefgh"; say ++$_ until > /(\w)<{$0.Str.succ}><{$0.Str.succ.succ}>/ and !/i|o|l/ and > /(\w)$0.*(\w)$1/; > > And `/(\w)<{$0.Str.succ}><{$0.Str.succ.succ}>/` regex is causing it

[perl #127870] Missing redeclaration error for package foo {}; enum foo

2016-04-13 Thread jn...@jnthn.net via RT
On Sun Apr 10 08:20:19 2016, raiph wrote: > What I did > == > > package foo {} > enum foo > > What I expected > === > > The same redeclaration error I get when I write: > > enum foo ; > package foo {} > > # Redeclaration of symbol foo > > What I got > == > > No e

[perl #127916] [BUG] Inaccurate assignment to $!shortname in cases where a mixin happens during BUILD time.

2016-04-20 Thread jn...@jnthn.net via RT
On Sun Apr 17 16:34:02 2016, pesc...@gmail.com wrote: > Consider the following snippet: > > 23:28 < psch> m: role Bar::Foo { }; class A { submethod BUILD { self > does Bar::Foo } }; A.new.WHAT.say > 23:28 <+camelia> rakudo-moar 617bb4: OUTPUT«(Foo})␤» > > Clearly, A is not of type 'Foo}'. As far

[perl #127980] Smartmatching $item ~~ list does not DWIM (4 ~~ (4,5,6,7))

2016-04-27 Thread jn...@jnthn.net via RT
On Mon Apr 25 07:54:18 2016, sml...@gmail.com wrote: > That said, two of the edge cases you have discovered, *do* feel pretty > strange: > > - An *empty* RHS list returning self instead of False. > - A RHS list with a Match as its first element returning self instead > of False. > > It may make s

[perl #127987] Block.assuming method apparently not reentrant

2016-04-27 Thread jn...@jnthn.net via RT
On Mon Apr 25 06:10:50 2016, sml...@gmail.com wrote: > The following works fine: > > for (^100).race(batch=>1) { {1 + $^a}(10) } > > But the following pretty reliably crashes: > > for (^100).race(batch=>1) { {1 + $^a}.assuming(10)() } > > If even crashes when EVAL is used to make sure each

[perl #128176] [BUG] .polymod implementation assumes all lazy lists are infinite

2016-05-19 Thread jn...@jnthn.net via RT
On Wed May 18 07:56:18 2016, c...@zoffix.com wrote: > When given a lazy list as the argument, .polymod divides until the > original number given by the invocant reaches zero. That works when > the lazy list is infinite, but when it isn't, we lose the final > remainder. This affects both the Int and

[perl #128522] multi-dispatch regression

2016-07-05 Thread jn...@jnthn.net via RT
On Sat Jul 02 10:52:22 2016, archb...@gmail.com wrote: > As discussed here: http://irclog.perlgeek.de/perl6/2016-07- > 02#i_1277 > > Behavior in: > https://gist.github.com/atweiden/9d1dfe825ade18a7db54d8e0733ca2e4 Fixed, and tests added in S06-multi/positional-vs-named.t.

[perl #128553] multi method cache causes Base64 regression

2016-07-09 Thread jn...@jnthn.net via RT
On Tue Jul 05 17:51:46 2016, ug...@cpan.org wrote: > Note that the final decode-base64 candidate shows the correct results > when debugging statements are added > > This gist also shows a small change that makes it produce the correct > values but it still segfaults more often than not > https://g

[perl #128553] multi method cache causes Base64 regression

2016-07-09 Thread jn...@jnthn.net via RT
On Tue Jul 05 17:51:46 2016, ug...@cpan.org wrote: > Note that the final decode-base64 candidate shows the correct results > when debugging statements are added > > This gist also shows a small change that makes it produce the correct > values but it still segfaults more often than not > https://g

[perl #127540] redeclaration error when using anon

2016-07-21 Thread jn...@jnthn.net via RT
On Sat Feb 13 20:08:16 2016, lloyd.fo...@gmail.com wrote: > sub foo { }; > my $a = anon sub foo { } > > ===SORRY!=== Error while compiling -e > Redeclaration of routine foo > at -e:1 > > Since anon is not going to install the symbol in any scope this is a false > positive. Will fix if I get a cha

[perl #128270] [BUG] NFG + :ignoremark = negative codepoint error

2016-07-21 Thread jn...@jnthn.net via RT
On Fri Jul 15 20:09:30 2016, c...@zoffix.com wrote: > Slightly golfed. The content of the regex character set doesn't > matter, but avoiding the character set avoids the error as well. The > :g and :ignoremark must be combined together. > > m: "a" ~~ m:g:ignoremark/<[á]>/ > rakudo-moar e2ec35: O

[perl #127750] Intermittent failure on t/04-nativecall/13-union.t

2016-07-21 Thread jn...@jnthn.net via RT
On Sun Mar 20 16:56:04 2016, coke wrote: > On Sun Mar 20 15:03:37 2016, elizabeth wrote: > > > On 20 Mar 2016, at 19:17, Will Coleda (via RT) > > follo...@perl.org> wrote: > > > > > > # New Ticket Created by Will Coleda > > > # Please include the string: [perl #127750] > > > # in the subject lin

[perl #123602] [BUG] .substr on a string built with infix: gives the wrong result in Rakudo on Moar

2016-07-21 Thread jn...@jnthn.net via RT
On Thu Jan 15 06:36:57 2015, masak wrote: > since I know a tiny bit about how strings are implemented on > Moar, I predict that the bug will be tracked down in how string > repetitions are handled. It was exactly that. There is a fast path for jumping through strands and repetitions to the corre

[perl #127782] [BUG] substr-rw

2016-07-21 Thread jn...@jnthn.net via RT
On Wed Jul 20 19:43:32 2016, c...@zoffix.com wrote: > A bit more investigation: > * If the string given to `x` is more than 1 character, the bug doesn't > appear > * The bug also doesn't seem to be present on JVM backend > > m: my $a = '.|' x 4 ~ 'a'; $a.substr-rw(1,1) = ''; say $a > rakudo-moar

<    1   2   3   4   5   6   7   8   >