--- Comment #12 from Stewart Gordon <s...@iname.com> 2012-04-21 16:38:03 PDT ---
(In reply to comment #8)
> I need to reiterate the consistency issue. Other superfluous
> attributes appear to be silently ignored where they are not
> applicable. __gshared makes no sense on a function, but it doesn't
> complain, as is static, shared, immutable, etc.
By "superfluous", do you mean "redundant" or "not making sense in the context"?
This is an important distinction to consider.
(In reply to comment #10)
> It's clearly a bug. All other attributes work as expected.
Not sure what you mean by that....
(In reply to comment #11)
> Seeing as DMD ignores most no-op attributes, I have no idea why
> this is the one where it suddenly decides that it should generate
> an error. I think final on variables should just be ignored, in
> keeping with other attributes.
What particular "other attributes" are you talking about?
Thinking about it now, variables can't be overridden, and so essentially are
already final. Banning them from being declared final might be considered
silly on this basis. So final on member variables is redundant, as opposed to
(for example) __gshared on functions which doesn't make sense.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------