[Issue 3118] Need a clear spec on how inapplicable attributes are handled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 22 16:14:31 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3118



--- Comment #4 from Stewart Gordon <smjg at iname.com> 2011-02-22 16:11:49 PST ---
(In reply to comment #3)
> attribute int a;
> attribute: int a;
> attribute { int a; }
> 
> should all have the same meaning for a.

This whole debate is about legality, not meaning.  Defining that they always
all have the same legality erodes the usefulness of the colon notation
especially, since one could try to use it and then be forced to move a
declaration to which it doesn't make sense to above the attribute, which can
get annoying if you want to place declarations in some intuitive or logical
order.

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


More information about the Digitalmars-d-bugs mailing list