develooper Front page | perl.perl5.porters | Postings from August 2001

Unexpected numeric behavior

Thread Next
From:
Kurt D. Starsinic
Date:
August 1, 2001 00:21
Subject:
Unexpected numeric behavior
Message ID:
20010801002155.C1879@wolfetech.com
Hi all,

    Is this the right thing?

    % perl5.6.1 -MPOSIX -MDevel::Peek -e 'Dump(POSIX::NOFLSH)'
    SV = NV(0x810d440) at 0x80f815c
      REFCNT = 1
      FLAGS = (TEMP,NOK,pNOK)
      NV = 2147483648

    % perl5.7.2 -MPOSIX -MDevel::Peek -e 'Dump(POSIX::NOFLSH)'
    SV = IV(0x814b5a4) at 0x814015c
      REFCNT = 1
      FLAGS = (TEMP,IOK,pIOK)
      IV = -2147483648

    NOFLSH is defined as 0x80000000 in <sys/termios.h>.

    Isn't an NV (or, IMHO, a UV) a superior representation?

    - Kurt


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About