diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-01-20 09:41:14 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-01-20 09:41:14 (GMT) |
commit | 43513688929a6ab31c9f6a0a233848d1f4765364 (patch) | |
tree | 25c5656ae7a190118dc567f8d49d5a98f489163e /doc | |
parent | eb8c21682b72bee7dd91e034b8f1a1bb773c63bc (diff) | |
download | tcl-43513688929a6ab31c9f6a0a233848d1f4765364.zip tcl-43513688929a6ab31c9f6a0a233848d1f4765364.tar.gz tcl-43513688929a6ab31c9f6a0a233848d1f4765364.tar.bz2 |
Document that [tailcall] doesn't work inside [catch]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tailcall.n | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/tailcall.n b/doc/tailcall.n index 2f8a305..93af2b5 100644 --- a/doc/tailcall.n +++ b/doc/tailcall.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: tailcall.n,v 1.1 2009/03/19 16:14:52 dkf Exp $ +'\" RCS: @(#) $Id: tailcall.n,v 1.2 2010/01/20 09:41:14 dkf Exp $ '\" .so man.macros .TH tailcall n 8.6 Tcl "Tcl Built-In Commands" @@ -25,10 +25,12 @@ in the current namespace context, not in the caller's. Apart from that difference in resolution, it is equivalent to: .PP .CS -uplevel 1 [list \fIcommand\fR ?\fIarg ...\fR?] +return [uplevel 1 [list \fIcommand\fR ?\fIarg ...\fR?]] .CE .PP -This command may not be invoked from within an \fBuplevel\fR into a procedure. +This command may not be invoked from within an \fBuplevel\fR into a procedure +or inside a \fBcatch\fR inside a procedure or lambda. +'\" TODO: sort out the mess with the [try] command! .SH EXAMPLE .PP Compute the factorial of a number. |