For any real twos-complement implementation, you should be fine.  This
includes Java, C, C++, Lisp and most versions of Basic, but does not include
Perl which does magic things to large integers like converting them
transparently to floating point.  It probably includes PHP except for the
size limitation.  As I remember vaguely, Python has some type tagging bits
in their integers but should otherwise be compatible twos complement.  The
only real effect should be that ints in python only have 29 bits.

On Wed, Jun 17, 2009 at 3:37 AM, Ephraim Dan <[email protected]> wrote:

> I guess in theory, would bitwise operations work fine even if we don't
> cast, and treat it as signed?




-- 
Ted Dunning, CTO
DeepDyve

111 West Evelyn Ave. Ste. 202
Sunnyvale, CA 94086
http://www.deepdyve.com
858-414-0013 (m)
408-773-0220 (fax)

Reply via email to