Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e8ff05d4209256fd0b9411cabd35e2600fe29c29
Ticket: 670110ffffffffffffffffffffffffffffffffff
Misleading documentation for [namespace inscope]
User & Date: jenglish on 2003-01-18 09:08:51
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    Logged In: YES 
    user_id=68433
    
    Here is a proposed rewording.  Let me know if this looks OK
    and I'll commit the change.
    
    .TP
    \fBnamespace inscope\fR \fInamespace\fR \fIscript\fR ?\fIarg
    ...\fR?
    Executes a script in the context of the specified
    \fInamespace\fR.
    This command is not expected to be used directly by
    programmers;
    calls to it are generated implicitly when applications
    use \fBnamespace code\fR commands to create callback scripts
    that the applications then register with, e.g., Tk widgets.
    The \fBnamespace inscope\fR command is much like the
    \fBnamespace eval\fR
    command except that the \fInamespace\fR must already exist,
    and \fBnamespace inscope\fR appends additional \fIarg\fRs
    as proper list elements.
    .br
    \fBnamespace inscope ::foo $script $x $y $z\fR
    is equivalent to
    \fBnamespace eval ::foo [concat $script [list $x $y $z]]\fR
    thus additional arguments will not undergo a second round of
    substitution,
    as is the case with \fBnamespace eval\fR.
    
    ... 
    Also, the documention for [namespace code] says that it
    wraps the script in a [namespace code] command; this should
    say [namespace inscope] instead.
    
    
  3. login: "jenglish"
  4. mimetype: "text/plain"
  5. username: "jenglish"