How to use exceptions

Christian Köstlin christian.koestlin at
Fri Aug 12 21:05:50 UTC 2022

On 12.08.22 01:50, H. S. Teoh wrote:
> ...
> The OP's idea of wrapping throwing code with a function that tacks on
> extra information is a good idea.  Perhaps the use of strings isn't
> ideal, but in principle I like his idea of exceptions acquiring
> higher-level information as it propagates up the call stack.

Thanks for the kind words ... I am still thinking how to put this
into a nicer API ... as it is in my current demo, its not much to type
out so I am happy with that. Actually having read the source of
ifThrown, its amazing how lazy makes wrapping easy!

More information about the Digitalmars-d-learn mailing list