On Thu, May 16, 2002 at 08:37:32PM -0400, Dan Sugalski wrote: > Pssst. Brent. Don't tell anyone, but ~0 *is* -1... :)
$ perl -le 'print ~0' 4294967295 $ perl -le 'print -1' -1 What language were we talking about? :-) [Actually, this is a big area of :-( Because perl programmers are used to writing ~0 when they mean -1 and vice versa, then this follows: $ perl -e 'printf "%u\n", -4.2' 4294967292 -4, -4.0 and -4.000001 all have to behave the same, otherwise DWIM fails whenever floating point results aren't quite what they seem. ] Nicholas Clark -- Even better than the real thing: http://nms-cgi.sourceforge.net/