Checked vs unchecked exceptions
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 5 14:05:04 PDT 2017
On Wednesday, 5 July 2017 at 15:48:33 UTC, Crayo List wrote:
> What happens to the 3000 direct and indirect calls to open() ?
>
> Notice how the 'interface' has not changed, only the
> implementation.
No, the exception spec is part of the interface whether it is in
the function declaration or not. Such a change could be fatal in
any system.
What you should do is to specify what Exceptions are thrown
across module borders. That means you should recast the internal
exceptions into module-level exceptions.
More information about the Digitalmars-d
mailing list