
26 Oct
2010
26 Oct
'10
11:40 p.m.
I am not convinced, as we don't have an array context here.
But sizeof(struct x) doesn't depend on how struct x is used. You can declare a pointer and then allocate for an array.
I don't see that with
struct foo x; struct foo y[N];
we have a guarantee that sizeof(x) == sizeof(y[0]).
Yes, I see this requirement. But maybe we're already bikeshedding: I won't get offended if you keep the global +15 & ~15.
regards /alessandro