[REBOL] Re: [BUG] in make struct! ?
From: lmecir:mbox:vol:cz at: 4-Aug-2003 23:22
Hi Oldes,
> GS> That's called padding. Most CPUs/architectures require that 32 bit
> GS> data be word aligned, i.e. start on an address that is divisible
> GS> by 4. This is very platform dependent anyway, so what you see here
> GS> is not what you might get on other platforms. Remember that
> GS> structs are intended for interfacing with C libraries.
>
> if it would be padding, why this struct is not padded as well:
>
> >> s: make struct! [a [short] b [short] c [short]] [1 2 3] third s
> == #{010002000300}
because the structure doesn't contain a 32-bit value, all values are 16-bit