diff options
Diffstat (limited to 'doc/catch.n')
-rw-r--r-- | doc/catch.n | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/catch.n b/doc/catch.n index 23771f9..885768f 100644 --- a/doc/catch.n +++ b/doc/catch.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: catch.n,v 1.3 1999/04/16 00:46:34 stanton Exp $ +'\" RCS: @(#) $Id: catch.n,v 1.4 1999/08/13 19:01:04 welch Exp $ '\" .so man.macros .TH catch n "8.0" Tcl "Tcl Built-In Commands" @@ -46,25 +46,21 @@ error. The \fBcatch\fR command may be used in an \fBif\fR to branch based on the success of a script. -.DS .CS if { [catch {open $someFile w} fid] } { puts stderr "Could not open $someFile for writing\\n$fid" exit 1 } .CE -.DE The \fBcatch\fR command will not catch compiled syntax errors. The first time proc \fBfoo\fR is called, the body will be compiled and a Tcl error will be generated. -.DS .CS proc foo {} { catch {expr {1 +- }} } .CE -.DE .SH KEYWORDS catch, error |