Rethrow an exception like in C++?

Ali Çehreli acehreli at yahoo.com
Fri Mar 8 09:40:36 PST 2013


On 03/08/2013 12:39 AM, Rob T wrote:
 > In C++ you can do this
 >
 > std::exception Trace()
 > {
 > try
 > {
 > // key item missing from D
 > throw; // <= rethrow last exception

This idiom is know as a Lippincott Function.

Ali



More information about the Digitalmars-d-learn mailing list