From 4afb8f350cf1359f2e21518ab8b6dd3694540fa5 Mon Sep 17 00:00:00 2001 From: dkf Date: Thu, 9 Jun 2005 14:23:54 +0000 Subject: Small doc improvements [Bug 1211078] etc. --- ChangeLog | 5 +++++ doc/expr.n | 17 ++++++++++------- doc/mathfunc.n | 4 ++-- 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 + + * 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 * 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 . All rights reserved +'\" Copyright (c) 2005 by Kevin B. Kenny . 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 . 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" -- cgit v0.12