From d7e39dbee53011c0645408a70c0580e96f49da37 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Sun, 17 Jan 2016 15:29:29 -0800 Subject: [PATCH] add doc for catching C++ exceptions --- spec/statement.dd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/statement.dd b/spec/statement.dd index a20b9bf546..825b267cdc 100644 --- a/spec/statement.dd +++ b/spec/statement.dd @@ -1673,7 +1673,16 @@ $(CONSOLE may not exit with a throw, goto, break, continue, or return; nor may it be entered with a goto. +$(H4 Catching C++ Class Objects) + $(P + On many platforms, catching C++ class objects is supported. + Catching C++ objects and D objects cannot both be done + in the same $(I TryStatement). + Upon exit from the $(I Catch), any destructors for the C++ + object will be run and the storage used for it reclaimed. + C++ objects cannot be caught in $(D @safe) code. + ) $(H3 $(LNAME2 asm, Asm Statement))