3 ms·
That would be bad in all kinds of situations which depend on one specific ordering of fields. When you use structs for inter-process communication in shared mem
by wongarsu 12y ago
That would be bad in all kinds of situations which depend on one specific ordering of fields. When you use structs for inter-process communication in shared memory or inside memory-mapped device memory you care a lot about defining your own order. When writing structs verbatim to network or disk (or reading that way) automatic reordering would quickly break things too.