Time to destroy Walter: breaking modules into packages

Jonathan M Davis jmdavisProg at gmx.com
Thu Jun 6 10:42:15 PDT 2013


On Thursday, June 06, 2013 13:47:29 Andrej Mitrovic wrote:
> I've argued the same thing before. And as a cream on top I'd like
> allowing package on virtual methods. That way I can have internal
> virtual methods which can be extended in other modules or modules in
> subpackages (if the two features are supported). This allows me to
> specialize behavior in subclasses, but at the same time disallows the
> user from calling such methods (a final protected override comes
> close, except it will still be callable in user-code).

Well, since Walter seems to have been convinced in the "Slow performance 
compared to C++, ideas?" thread to make it so that non-virtual is the default, 
the presumably it could be changed so that package could be virtual when it's 
marked as virtual.

- Jonathan M Davis


More information about the Digitalmars-d mailing list