Thread overview
Alignment problem
Jan 18, 2004
Georg Wrede
Jan 18, 2004
Andy Friesen
Jan 18, 2004
Georg Wrede
Jan 18, 2004
John Reimer
January 18, 2004
The following code gives

aligntest.d(3): Declaration expected, not '1'

struct ABC
{
align 1 char a;
}


January 18, 2004
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
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
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 )