Endian check for a Mac - help requested

Richard A. O'Keefe ok at cs.otago.ac.nz
Wed Sep 29 01:23:19 UTC 2004


"David T. Lewis" <lewis at mail.msen.com> asked:
	Could somebody with a Mac (big endian machine)
	please evaluate the following
	
	  { SmalltalkImage current endianness . Float nan at: 1 .  Float nan at: 2 }
	
Answer:
	#(#big 2146959360 0)

In principle, knowing the order of bytes within a word _still_ leaves you
ignorant of whether the word order for a double matches the byte order for
a word.  There have been machines where that was a serious issue, but I
don't know if Squeak runs on any such.




More information about the Squeak-dev mailing list