On Sun, 08 Jan 2017 23:31:11 -0800, barto...@gmx.de wrote:
> Since the new Rakudo::Internals.OneValueIterator is used in infix:<Z>
> (Rakudo commit c405f06724) there are four failing tests in
> S03-metaops/zip.t on rakudo-j.
> 
> One example of failing code:
> 
> $ ./perl6-j -e 'say $(1, 2) Z <a b c>'
> (((1 2) a) ((Mu) b) ((Mu) c))
> 
> $ ./perl6-m -e 'say $(1, 2) Z <a b c>'
> (((1 2) a))
> 
> I investigated a bit and it looks like $!value is Mu here on rakudo-j
> (instead of nqp::null on rakudo-m):
> 
> https://github.com/rakudo/rakudo/blob/fbbe446c64fbf98f3fc7e64016e5213a3ee1f09f/src/core/Rakudo/Internals.pm#L1002

I managed to golf this a bit:

$ ./perl6-j -e 'use nqp; class A { has Mu $!foo; method bar () { $!foo := 
nqp::null; say nqp::isnull($!foo) ?? "null" !! $!foo } }.new.bar'
(Mu)

Reply via email to