[perl #131099] [LTA] is assoc('list') gives "MVMArray: Can't pop from an empty array"

2018-01-12 Thread Zoffix Znet via RT
On Tue, 04 Apr 2017 15:42:50 -0700, c...@zoffix.com wrote: > Per TimToady[^1], we should throw on attempts to use list assoc with > non-infix ops. From: https://irclog.perlgeek.de/perl6-dev/2018-01-12#i_15683344 14:16 masak re https://rt.perl.org/Public/Bug/Display.html?id=132711 -- associat

[perl #131099] [LTA] is assoc('list') gives "MVMArray: Can't pop from an empty array"

2018-01-12 Thread Zoffix Znet via RT
On Tue, 04 Apr 2017 15:42:50 -0700, c...@zoffix.com wrote: > Per TimToady[^1], we should throw on attempts to use list assoc with > non-infix ops. From: https://irclog.perlgeek.de/perl6-dev/2018-01-12#i_15683344 14:16 masak re https://rt.perl.org/Public/Bug/Display.html?id=132711 -- associat

[perl #132713] Order of `is assoc` and precedence traits matter, but should it?

2018-01-12 Thread Zoffix Znet via RT
On Fri, 12 Jan 2018 00:02:34 -0800, comdog wrote: > I originally asked this on StackOverflow: > > https://stackoverflow.com/q/48219788/2766176 > > This fails to be right associative: > > sub infix:<↑> ( Int:D \n, Int:D \m --> Int:D ) > is assoc > is equiv(&infix:<**>) >

[perl #132713] Order of `is assoc` and precedence traits matter, but should it?

2018-01-12 Thread Zoffix Znet via RT
On Fri, 12 Jan 2018 00:02:34 -0800, comdog wrote: > I originally asked this on StackOverflow: > > https://stackoverflow.com/q/48219788/2766176 > > This fails to be right associative: > > sub infix:<↑> ( Int:D \n, Int:D \m --> Int:D ) > is assoc > is equiv(&infix:<**>) >

[perl #132711] [LTA] Stupidly using `is assoc` with unary prefix operator has an error message from the deep

2018-01-12 Thread Zoffix Znet via RT
On Thu, 11 Jan 2018 23:40:54 -0800, comdog wrote: > I stupidly did this: > > sub prefix:<²> ( Int:D \m --> Int:D ) > is assoc > { m ** m } > > put ²(²2); > > And got this error: > > ===SORRY!=== > MVMArray: Can't pop from an empty array > > I figure that associ

[perl #132711] [LTA] Stupidly using `is assoc` with unary prefix operator has an error message from the deep

2018-01-12 Thread Zoffix Znet via RT
On Thu, 11 Jan 2018 23:40:54 -0800, comdog wrote: > I stupidly did this: > > sub prefix:<²> ( Int:D \m --> Int:D ) > is assoc > { m ** m } > > put ²(²2); > > And got this error: > > ===SORRY!=== > MVMArray: Can't pop from an empty array > > I figure that associ

[perl #132713] Order of `is assoc` and precedence traits matter, but should it?

2018-01-12 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #132713] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132713 > I originally asked this on StackOverflow: https://stackoverflow.com/q/48219788/2766