K
Keith Thompson
Baxter said:Keith Thompson said:Baxter said:[Please don't top-post.]
Please don't be a NetNanny.
Articles are easiest to read if each individual article can be read by
itself from top to bottom.
Baloney. amUsenet servers store the old posts for reference. Modern
usenet clients thread the conversation. Each post does NOT have to stand
alone. Viewers do not need to scroll through pages of previous dreck to get
to your one sentence at the bottom, nor do they need to re-read the entire
conversation each time.
With all due respect, you are simply wrong.
The solution to the "pages of previous dreck" problem is to trim any
quoted material to what is actually relevant to your followup. It
takes a little time and thought, but it will save your readers far
more time than it costs you.
Browse this newsgroup to see how it's done.
Bottom posting is a -religion-.
No, bottom posting is a convention that has served us very well here
in the comp.lang.c community for many years. There are good reasons
for it, which have been explained repeatedly and at length. Now you
come in here and tell us we've been doing it wrong all this time.
Give us a little credit; we know what we're doing and why.
Maybe you need new compiler. I'm using at least six different compilers
(for three different environments) and every one of them has that option.
Perhaps so. Does the compiler I'm using have that option? What about
the compiler the original poster is using? You don't know, and
neither do I.
I just tried a small test case on several compilers that I use; on
three of them, "#pragma pack(1)" appears to be ignored (which is what
the standard specifies for unrecognized pragmas). Are you sure it
actually *works* on all six of your compilers?
This is why we generally limit discussion here to standard C.
Enough of the flame war - I'd like to address an issue: "The size of the
union may be larger than the size of the float."
After I posted, I recalled that unions used to be used to minimize storage,
and could contain elements of unequal size. For the most part (the
exception being Embedded programming), that usage is obsolete. In this
case, we were using a union specifically to look at storage two different
ways.
I'll leave any technical discussions for others, at least for now.