From: Conrad Schneiker Date: 2001-01-20T07:38:30+09:00 Subject: [ruby-talk:9572] Re: Fast, loose, and out of control Mathieu Bouchard wrote: # > |This is all relative. Here is a procedure that requires a String as a # > |parameter; it does not work on big-endian machines; it depends on the # > |implementation of String; it depends on the memory layout of String. # > Hmm, I'm considering to restrict "P", which is pretty nasty. # > "P" will only retrieve the pointer which previously packed by "P". # > I should have done long before. Ahh, that reminds me about something I forgot to ask when this topic first came up. What is the recommended Ruby way to determine whether you are (or a particular thread is) running on a big-endian or little-endian CPU? Conrad Schneiker (This note is unofficial and subject to improvement without notice.)