CTFE Status 2
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 12 02:46:39 PDT 2017
On Wednesday, 12 July 2017 at 07:58:30 UTC, Stefan Koch wrote:
> Whereas A struct is always stored __packed__ and aligned to 4
> byte boundaries
>
> struct S // size: 20
> {
> ubyte m1; // offset: 0
> ulong m2; // offset: 4
> ubyte m3; // offset: 12
> ubyte m4; // offset: 16
> }
Do you plan to keep it like that? This won't work on non-x86
architectures that don't allow unaligned memory access.
More information about the Digitalmars-d
mailing list