It seemed that +/\ special code cannot detect integer overflow on the
negative side,

   yy=: 3$ >IF64{_2147483647;_9223372036854775807
   plus=: +
    3 +/\ yy            NB. special code
_9223372036854775805
    3 plus/\yy          NB. without special code
_2.7670116e19
   +/yy                 NB. expected result
_2.7670116e19

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to