summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-06-09 14:23:54 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-06-09 14:23:54 (GMT)
commit4afb8f350cf1359f2e21518ab8b6dd3694540fa5 (patch)
treec9871a95b890a09377cb8bd3c2793060a1b394ab
parent978589436b703c6fb5b4b6b9075a45a942bdb1ad (diff)
downloadtcl-4afb8f350cf1359f2e21518ab8b6dd3694540fa5.zip
tcl-4afb8f350cf1359f2e21518ab8b6dd3694540fa5.tar.gz
tcl-4afb8f350cf1359f2e21518ab8b6dd3694540fa5.tar.bz2
Small doc improvements [Bug 1211078] etc.
-rw-r--r--ChangeLog5
-rw-r--r--doc/expr.n17
-rw-r--r--doc/mathfunc.n4
3 files changed, 17 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 8bdc5c1..07b13a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-09 Donal K. Fellows <dkf@users.sf.net>
+
+ * doc/expr.n, doc/mathfunc.n: Fix minor typos [Bug 1211078] and
+ add mention of distinctly-relevant [namespace path] subcommand.
+
2005-06-07 Don Porter <dgp@users.sourceforge.net>
* generic/tclInt.h: Reduced the Tcl_ObjTypes "index",
diff --git a/doc/expr.n b/doc/expr.n
index 3fd05b9..2fb328c 100644
--- a/doc/expr.n
+++ b/doc/expr.n
@@ -1,12 +1,12 @@
'\"
'\" Copyright (c) 1993 The Regents of the University of California.
'\" Copyright (c) 1994-2000 Sun Microsystems, Inc.
-.\" Copyright (c) 2005 by Kevin B. Kenny <kennykb@acm.org>. All rights reserved
+'\" Copyright (c) 2005 by Kevin B. Kenny <kennykb@acm.org>. All rights reserved
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: expr.n,v 1.20 2005/05/23 17:41:00 das Exp $
+'\" RCS: @(#) $Id: expr.n,v 1.21 2005/06/09 14:24:06 dkf Exp $
'\"
.so man.macros
.TH expr n 8.5 Tcl "Tcl Built-In Commands"
@@ -212,6 +212,7 @@ the Tcl parser will evaluate both \fB[a]\fR and \fB[b]\fR before
invoking the \fBexpr\fR command.
.SS "MATH FUNCTIONS"
.PP
+.VS 8.5
When the expression parser encounters a mathematical function
such as \fBsin($x)\fR, it replaces it with a call to an ordinary
Tcl function in the \fBtcl::mathfunc\fR namespace. The processing
@@ -223,13 +224,15 @@ is the same in every way as the processing of:
.CS
\fBexpr {[tcl::mathfunc::sin [expr {$x+$y}]]}\fR
.CE
-The executor will search for \fBtcl::mathfunc::sin\fR using the
-usual rules for resolving functions in namespaces. Either
-\fB::tcl::mathfunc::sin\fR or \fB[namespace current]::tcl::mathfunc::sin\fR
-will satisfy the request.
+The executor will search for \fBtcl::mathfunc::sin\fR using the usual
+rules for resolving functions in namespaces. Either
+\fB::tcl::mathfunc::sin\fR or \fB[namespace
+current]::tcl::mathfunc::sin\fR will satisfy the request, and others
+may as well (depending on the current \fBnamespace path\fR setting).
.PP
-See the \fBmathfunc(n)\fR manual page for the math functions that are
+See the \fBmathfunc\fR(n) manual page for the math functions that are
available by default.
+.VE 8.5
.SS "TYPES, OVERFLOW, AND PRECISION"
.PP
All internal computations involving integers are done with the C type
diff --git a/doc/mathfunc.n b/doc/mathfunc.n
index f9ebdcb..5ea56bc 100644
--- a/doc/mathfunc.n
+++ b/doc/mathfunc.n
@@ -1,4 +1,4 @@
-.\"
+'\"
'\" Copyright (c) 1993 The Regents of the University of California.
'\" Copyright (c) 1994-2000 Sun Microsystems, Inc.
'\" Copyright (c) 2005 by Kevin B. Kenny <kennykb@acm.org>. All rights reserved
@@ -6,7 +6,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: mathfunc.n,v 1.5 2005/05/26 08:08:49 dkf Exp $
+'\" RCS: @(#) $Id: mathfunc.n,v 1.6 2005/06/09 14:24:06 dkf Exp $
'\"
.so man.macros
.TH mathfunc n 8.5 Tcl "Tcl Mathematical Functions"