Yup!
https://scan.coverity.com/projects/paultcochrane-moarvm
So that leaves nqp::pow_n(1e0, NaN) == 1e0. Is that also part of IEEE?
I see that Perl 5 gives a NaN for NaN**0, but 1 for 1**NaN:
zoffix@VirtualBox:~$ perl -wlE 'say -sin(9**9**9)**0'
I took a gander at 2008 IEEE 754 standard and section "9.2.1 Special values"
has this to say:
pow (x, ±0) is 1 for any x (even a zero, quiet NaN, or infinity)
pow (+1, y) is 1 for any y (even a quiet NaN)
So our behaviour is correct. Rejecting.
On Mon Oct 17 03:05:33 2016, c...@zoffix.
Hi,
Revisiting the problem using rakudo version 2016.10-31-g6ed3a68 built on
MoarVM version 2016.10 implementing Perl 6.c.
The issue still exist but tried to rewrite things to get it working
role RR1 {
submethod BUILD ( Int :$i ) { say $i // 'No i'; }
}
role RR2 {
submethod BUILD ( Str
Looks like this bug re-appeared and Rakudo's function all come down to
nqp::log_n():
m: say log 0
rakudo-moar 2dd0dd: OUTPUT«-Inf»
m: use nqp; say nqp::log_n(0e0)
rakudo-moar 2dd0dd: OUTPUT«-Inf»
2008 IEEE 754[^1], in section 9.2, says log(0) needs to give a divideByZero
e
I should've read more:
"Section 7.3 Division by zero", says 'For logB(0) when logBFormat is a
floating-point format, the sign of the infinity is minus (−∞).'
And I'm guessing this case matches it, because JVM and C standard lib too give
-Inf and nqp just maps the operations to VM's operations.
I just downloaded the 2016.10 RC (into a different directory than
2016.07, in case it broke something).
Testing the REPL, scrolling back through the commands continued back
into the history of previous sessions with the older version. (I.e,
they appear to be accessing the same history file.)
At t
# New Ticket Created by hanenkamp
# Please include the string: [perl #129906]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129906 >
One line example of the problem:
% perl6 -e 'class A { ... }; class B does A { }; role A {
# New Ticket Created by David Warring
# Please include the string: [perl #129907]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129907 >
I'm adding a FALLBACK method to create method dynamically, the it receives
both '.' and