Leandro Lucarella <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from Leandro Lucarella <> 2010-07-29 16:54:37 
PDT ---
The problem is, attributes in D are not as in Java, they can be applied to a
lot of symbols, like:

private int j;


int i;
// another bunch of stuff
alias j k;

Should the compiler complain at that alias? What about this:

void f() {}

extern (C):

void g() {}
// another bunch of stuff
alias f h;

Should the compiler complain about non-sense extern (C) alias? What about
const? You can "revert" the extern (C) with extern (D) and public with private,
but there is no "mutable" to revert const.

This is a bigger problem on how attributes work in D, and there were some
threads about the issue.

And I'm not saying I'm against issuing error when attributes are applied to
things that doesn't make sense, I'm just sharing some problems about the issue

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to