Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 18, 2004 Alignment problem | ||||
---|---|---|---|---|
| ||||
The following code gives aligntest.d(3): Declaration expected, not '1' struct ABC { align 1 char a; } |
January 18, 2004 Re: Alignment problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Georg Wrede | Georg Wrede wrote:
> The following code gives
>
> aligntest.d(3): Declaration expected, not '1'
>
> struct ABC
> {
> align 1 char a;
> }
You need parenths. align(1) should work.
-- andy
|
January 18, 2004 Re: Alignment problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andy Friesen | In article <buepq8$188k$1@digitaldaemon.com>, Andy Friesen says... > >Georg Wrede wrote: >> The following code gives >> >> aligntest.d(3): Declaration expected, not '1' >> >> struct ABC >> { >> align 1 char a; >> } Seems Walter seriously needs someone to take the responsibility for the docs! At this point it is just stupid that he'd have to have that too on his shoulders. Walter's got more pressing stuff to do. |
January 18, 2004 Re: Alignment problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Georg Wrede | In article <bues9g$1ch5$1@digitaldaemon.com>, Georg Wrede says... > >In article <buepq8$188k$1@digitaldaemon.com>, Andy Friesen says... >> >>Georg Wrede wrote: >>> The following code gives >>> >>> aligntest.d(3): Declaration expected, not '1' >>> >>> struct ABC >>> { >>> align 1 char a; >>> } > >Seems Walter seriously needs someone to take the responsibility for the docs! > >At this point it is just stupid that he'd have to have that too on his shoulders. Walter's got more pressing stuff to do. > > Why's that? The docs appear to show the proper use of align in the "attributes" section of the docs (ie, use of parenthesis ) |
Copyright © 1999-2021 by the D Language Foundation