You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If .perl is used to serialise a value of 0 but True, it doesn't represent
the but-True aspect. Evaling the result produces a mundane false zero.
.WHICH and eqv recognise the difference.
$ ./perl6 -e 'my $a = 0 but True; say $a.perl; my $b = $a.perl.EVAL; say ?$a, " ", ?$b; say $a.WHICH, " ", $b.WHICH; say $b eqv $a'
0
True False
Int+{<anon>}|0 Int|0
False
The same goes for many other values modified by "but".
Migrated from rt.perl.org#126097 (status was 'new')
Searchable as RT126097$
The text was updated successfully, but these errors were encountered: