
28 May
2010
28 May
'10
3:21 p.m.
Terry, thanks for posting your code.
At that point, however, the functional approach seems more straightforward.
We sometimes deal with messages with mixed endianness. A functional approach means the programmer has to "know" which endianess the data he wants to swap is.
Well, the programmer needs to know this in any case but in your usage scenario, without additional information about what you are doing, I would tend to agree that the information may be better encapsulated the way you did it. As I said previously, I am opened to implementing what you need as a thin layer on top of the "raw" swap capability. That would satisfy your needs, correct? Tom