www.digitalmars.com         C & C++   DMDScript  

D - Alignment problem

reply Georg Wrede <Georg_member pathlink.com> writes:
The following code gives

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

struct ABC
{
align 1 char a;
}
Jan 18 2004
parent reply Andy Friesen <andy ikagames.com> writes:
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
Jan 18 2004
parent reply Georg Wrede <Georg_member pathlink.com> writes:
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.
Jan 18 2004
parent John Reimer <John_member pathlink.com> writes:
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 )
Jan 18 2004