[REBOL] Re: [BUG] in make struct! ?
From: g:santilli:tiscalinet:it at: 29-Jul-2003 12:44
Hi rebOldes,
On Tuesday, July 29, 2003, 12:28:35 PM, you wrote:
r> but:
>>> s: make struct! [a [short] b [long]] [1 2] third s
r> == #{0100000002000000}
That's called padding. Most CPUs/architectures require that 32 bit
data be word aligned, i.e. start on an address that is divisible
by 4. This is very platform dependent anyway, so what you see here
is not what you might get on other platforms. Remember that
structs are intended for interfacing with C libraries.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/