-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Assuming "num" uses the underlying floating point semantic (which may
turn 0/0 into NaN without raising exception), what should the default
"Num" do on these forms?

        0/0
        0*Inf
        Inf/Inf
        Inf-Inf
        0**0
        Inf**0
        1**Inf

Several options:
- - Use whatever the underlying "num" semantics available
- - Always "fail"
- - Always "die"
- - Specify them to return some definite value.

At this moment, Pugs defines them ad-hocly to:

        0/0       == die "Illegal division by zero"
        0*Inf     == NaN
        Inf/Inf   == NaN
        Inf-Inf   == NaN
        0**0      == 1
        Inf**0    == 1
        1**Inf    == 1

But I'd like to seek a more definite ruling.

Thanks,
Audrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDzQyitLPdNzw1AaARApaEAKChw0bHNA3M7OBLoeoRpootIjpy0QCfYtvT
/vNWF8SkS7MMXWDsZrDCp8I=
=vI/b
-----END PGP SIGNATURE-----

Reply via email to