new DIP47: Outlining member functions of aggregates
Jonathan M Davis
jmdavisProg at gmx.com
Sat Sep 7 21:54:47 PDT 2013
On Saturday, September 07, 2013 21:30:10 Andrej Mitrovic wrote:
> On 9/7/13, Walter Bright <newshound2 at 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
More information about the Digitalmars-d
mailing list