RFD: Adding an op that checks for Inf, -Inf, NaN

Moritz Lenz moritz at faui2k3.org
Tue Dec 6 10:09:25 UTC 2011


Hi all,

for some operations in Rakudo it is important for us to check if a num 
value is one of Inf/-Inf/NaN.

I'd like to add an op to parrot that does just that, here is my humble 
attempt:

http://moritz.faui2k3.org/tmp/is_inf_or_nan.patch

(then running 'make bootstrap-ops')

but it segfaults in this step:

./parrot pbc_to_exe.pbc pbc_to_exe.pbc

Any idea what's wrong? Or is there already a way to do that check which 
I don't yet know about?

Cheers,
Moritz


More information about the parrot-dev mailing list