View Single Post
  #25   Report Post  
Old October 26th 10, 06:58 PM posted to uk.railway,uk.transport.london
Michael R N Dolbear Michael R N Dolbear is offline
external usenet poster
 
First recorded activity at LondonBanter: Dec 2004
Posts: 651
Default More Oyster Woes ...

Sam Wilson wrote


... but they are distinguishable, even in languages that do not

offer
access to the bit patterns as such.


... though I don't know of any higher-level languages that let you
distinguish between +0 and -0 integers even on hardware that supports


the distinction. (And FWIW the TCP/IP suite uses ones-complement
arithmetic in its checksum calculations.)


Fortran on the Univac/Unisys 1100 series (which used one-complement
single and double integers and indeed floating point). IIRC the CDC
6600/7600 was the same in providing functions for bit-wise AND, OR, XOR
and NOT.

--
Mike D