From: Lars <Lar...@ma...> - 2004-07-24 11:39:26
|
At 01.29 +0200 04-07-24, Martin Lemburg wrote: [stuff deleted] > ... is not conform to the man pages of the return and the catch command, > because the catch command should return the values of the exceptional > return codes. And in the return man page is to be read, that the -code > option allows to create exceptional return codes. > > So - what is going wrong? Should I file this as a bug on sourceforge.net, > or is this already known and documented in the bug database, or corrected > in v8.4.6+? > > And - I see the differences from "return" and "return -code return", but > how should I differentiate via "catch" these two cases? Take a look at TIP #90: Enable [return -code] in Control Structure Procs http://purl.org/tcl/tip/90 The descriptions there should answer your questions. Lars Hellstr=F6m |