[Issue 5868] static attribute ignored with public static {} blocks

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 27 21:24:52 PST 2012


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



--- Comment #11 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-01-27 21:24:48 PST ---
There are arguments for it which relate to generic programming. It's not that
hard to end up with templated code that would have issues compiling if the
compiler errored out on invalid attributes for particular instantiations of a
template while being fine for others.

I agree that ideally the compiler would error out on invalid attributes, but I
think that the situation and its effects have to be closely examined before
changing the status quo. Regardless of that though, the big problem is
convincing Walter. Personally, I'm surprised that the compiler allows invalid
attributes in the first place. I have no idea what his thought process was in
allowing them and have no idea what it would take to convince him.

-- 
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