Skip to content

Commit

Permalink
Merge pull request #1202 from WalterBright/cppeh
Browse files Browse the repository at this point in the history
add doc for catching C++ exceptions
  • Loading branch information
andralex committed Jan 18, 2016
2 parents 6939933 + d7e39db commit 4b9cd7d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/statement.dd
Expand Up @@ -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))

Expand Down

0 comments on commit 4b9cd7d

Please sign in to comment.