Olivier Galibert writes:
On Tue, Jan 25, 2000 at 06:47:48PM -0800, Martin Buchholz wrote:
> I suggest the following as being more intuitive, more maintainable,
> and also being more correct. You are making the non-portable
> assumption that the compiler lays out structs like an array. In fact,
> the compiler can order key and value any way it likes. You did call
> it the _portable_ dumper.
If you do such a "fix", do it everywhere. There are a lot of places
where I do this assumption.
I remeber reviewing some code that made this assumption and doing
some reading of the H&S C reference. I came to the conclusion
that treating a struct like an array was portable. I'm away from
my books at the moment so I can't quote anything yet. But I'm
curious, Martin, why you think it isn't portable?