Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Cross meta operator on empty list complains "This type (Scalar) does not support elems" #6289
Using a cross meta operator on an empty list complains "This type
say (1,2).elems; say ().elems; say (1,2) X ();
yields "2␤0␤This type (Scalar) does not support elems"
Seems to work correctly with arrays instead of lists.
say [1,2].elems; say .elems; say [1,2] X ;
Linux Mint 17.2
16:54 bisectable6 MasterDuke, bisect log: https://gist.github.com/7d49ce1401bee0ab3127c5d1be2a919e
16:57 Zoffix m: use nqp; nqp::elems(nqp::getattr((), List, '$!reified'))
17:00 m: use nqp; dd nqp::getattr((), List, '$!reified').^name; dd nqp::getattr(, List, '$!reified').^name
FWIW, I’m testing a fix.
On Mon, 29 May 2017 10:02:27 -0700, email@example.com wrote:
Thank you for the report. lizmat++ fixed the issue.
On Mon, 29 May 2017 11:36:49 -0700, firstname.lastname@example.org wrote:
Re-opening, because it hasn't been fixed for the Xop case yet:
➜ say () X+ (1, 2);
➜ say (1,2) X~ ();
➜ say () X=> ();
Bisectable¹ blames a commit² from January.
This is Rakudo version 2017.09-142-ga89add0bf built on MoarVM version 2017.09.1-49-gb3dd812a
On Sat, 30 Sep 2017 12:40:59 -0700, email@example.com wrote: