www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - botched CatchParameter syntax

reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://www.digitalmars.com/d/statement.html:
 Catch:
	catch () CatchParameter  BlockStatement
 Parameter declares a variable v of type T, where T is Object or
 derived from Object.
1) Shouldn't "Parameter" in the text be replaced by "CatchParameter"? 2) The compiler seems to use:
 Catch:
       catch (CatchParameter)  BlockStatement
3) Added to DStress as http://dstress.kuehne.cn/nocompile/c/catch_06.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD9Z2o3w+/yD4P9tIRApj6AKCQgoEVcytONSkG4hW2jdpvKgaEewCgp8dM 0xtoyHXy4m/qcpjgIukmpcI= =wkr7 -----END PGP SIGNATURE-----
Feb 17 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
The compiler's fine, the documentation is broken. 
Feb 17 2006