Ordering comparisons
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Mon Mar 6 23:58:22 PST 2017
On 2017-03-07 04:44, Nick Sabalausky (Abscissa) wrote:
> This one is very surprising. How is that so, if both structs being
> compared are of the same endian-ness?
The structs for a given run will be of the same endian-ness. But if you
run the same code on two different systems, one with little endian and
one with big endian, you will get different results when sorting an
array, for example. If I understand this correctly.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list