[Issue 11883] [feature request] align attribute without value defaults to largest supported alignment.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 8 09:38:41 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11883



--- Comment #2 from Iain Buclaw <ibuclaw at ubuntu.com> 2014-01-08 09:38:37 PST ---
(In reply to comment #1)
> align without an argument will re-set the alignment to default, which may be
> useful in some situations:
> 
> -----
> struct Foo
> {
> align(8):
>     short a;
>     short b;
>     short c;
> align:
>     short d;
> }
> 

I feel that has less of a use case, especially when implementing C structs that
use __attribute__((aligned)) in their code.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list