Can we make Throwable an interface?

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 9 11:03:08 PST 2014


09-Dec-2014 21:00, Sean Kelly пишет:
> All the stack tracing stuff is wired through Throwable, so some
> duplication may need to occur if it were changed to an interface.

Do yYou mean that interface can't contain the code for tracing so we'd 
have to duplicate it in Error and/or Exception?

But interfaces can contain final methods just fine and tracing seems 
like something not overridable nor public, how the whole problem area 
looks like?


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list