On Saturday, September 07, 2013 21:30:10 Andrej Mitrovic wrote:
> On 9/7/13, Walter Bright <newshou...@digitalmars.com> wrote:
> > @safe/@trusted/@system, private/package/public/export access, linkage and
> > storage classes are as set in the declaration, overriding any in effect
> > for the definition.
> They should both match or there should be an error. Don't allow sloppy
> code to be written like that, people *will* read both the declarations
> and the definitions (the team or contributors in an open-source
> project), and any mismatch will only cause confusion.

Agreed. If we're going to do this, let's not allow the possibility of 
mismatches or it will make the maintenance problems that this DIP introduces 
even worse (though I'd prefer that we not implement it at all).

- Jonathan M Davis

Reply via email to