# New Ticket Created by  David Hoekman 
# Please include the string:  [perl #126563]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126563 >


In perl6 version 2015.10-158-gbccb16d built on MoarVM version
2015.10-46-g5bf7e46:

Looking at the code for Hamming numbers at Rosetta Code found this problem:

my @z = <1 2>;
say  @z X*  @z  X* @z;            # OK
say (@z X*  @z) X* @z;            # OK
say  @z X* (@z  X* @z).Array; # OK
say  @z X* (@z  X* @z);          # fails

(1 2 2 4 2 4 4 8)
(1 2 2 4 2 4 4 8)
(1 2 2 4 2 4 4 8)
===SORRY!===
Cannot invoke this object (REPR: Uninstantiable)

Likewise fails for other arithmetic operations (+, -, /, **), as well as:

my @y = <a b>;
say  @y X~ (@y  X~ @y);          # fails

But ','  works with both @x and @y.

Reply via email to