Why is align() on structures not allowed within unit-test code blocks?

2011-12-04 Thread GrahamC
Is there a good reason why align() applied to structure definitions is not allowed on the struct definition line within unit-test code blocks? E.g.: unittest {      align(1) struct Foo {         charc;         int i;     }      void Bar() {           Foo f;      

Re: Why is align() on structures not allowed within unit-test code blocks?

2011-12-04 Thread Timon Gehr
On 12/04/2011 03:01 PM, GrahamC wrote: Is there a good reason why align() applied to structure definitions is not allowed on the struct definition line within unit-test code blocks? E.g.: unittest { align(1) struct Foo { char c; int i; }