February 17, 2006 botched CatchParameter syntax | ||||
---|---|---|---|---|
| ||||
Attachments: | 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) # void main(){ # try{ # }catch(Object){ // XPass "T" instead of "T v" # } # } Added to DStress as http://dstress.kuehne.cn/nocompile/c/catch_06.d Thomas |
February 17, 2006 Re: botched CatchParameter syntax | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | The compiler's fine, the documentation is broken. |
Copyright © 1999-2021 by the D Language Foundation