www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

digitalmars.D - unclear "finally" documentation

↑ ↓ ← Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


http://www.digitalmars.com/d/statement.html
# If an exception is raised in the FinallyStatement(1) and
# is not caught before the FinallyStatement(2) is
# executed, the new exception replaces any existing exception.

How can an exception be thrown(1) in a finally scope, if
that very scope isn't currently executed(2)?

Thomas

-----BEGIN PGP SIGNATURE-----

iD8DBQFCPwJq3w+/yD4P9tIRAo0vAKCDOsYH3bGmoqXo10DPKdP2k2i4mACfSErR
yETMfayVXNcSRz6PEM6coCY=
=zDO6
-----END PGP SIGNATURE-----
Mar 21 2005
↑ ↓ → "Regan Heath" <regan netwin.co.nz> writes:
On Mon, 21 Mar 2005 20:48:00 +0000 (UTC), Thomas Kuehne  
<thomas-dloop kuehne.thisisspam.cn> wrote:
 http://www.digitalmars.com/d/statement.html
 # If an exception is raised in the FinallyStatement(1) and
 # is not caught before the FinallyStatement(2) is
 # executed, the new exception replaces any existing exception.

 How can an exception be thrown(1) in a finally scope, if
 that very scope isn't currently executed(2)?

I suspect "executed" is meant to be "completed" and should be changed to that. Regan
Mar 21 2005