The great inapplicable attribute debate

Kagamin spam at here.lot
Mon Apr 13 01:39:53 PDT 2009


Stewart Gordon Wrote:

> At the moment, the problem seems to be that the compiler is silently 
> ignoring many cases of (a), (b) and (c) alike.  Some people argue that 
> the spec doesn't forbid such use of inapplicable attributes explicitly, 
> and so the compiler's treatment of these cannot be called a bug.
> 
> I argue that this isn't right.  Nothing I've managed to find in the spec 
> states or implies that such obviously wrong code is allowed.  So, by 
> applying common sense, one would conclude that it isn't allowed.

Such mood was always in the spec: "AlignAttribute is ignored when applied to declarations that are not structs or struct members".



More information about the Digitalmars-d mailing list