Introspection of exceptions that a function can throw

Dennis dkorpel at gmail.com
Wed Feb 24 20:00:29 UTC 2021


On Wednesday, 24 February 2021 at 19:38:53 UTC, Mark wrote:
> Is there a way to obtain a list, at compile-time, of all the 
> exception types that a function might throw (directly or 
> through a call to another function)?

No, since this is not known at compile-time.

See: 
https://forum.dlang.org/post/qnarroejixxtqxjiwvhy@forum.dlang.org


More information about the Digitalmars-d-learn mailing list