Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 782a83c29781e024ebd7890ba19a124a72448da1
Ticket: 1242314fffffffffffffffffffffffffffffffff
confusing unset/upvar documentation
User & Date: marcomaggi on 2005-07-27 02:15:28
Changes

  1. icomment:
    Logged In: YES 
    user_id=727156
    
    Fine. I agree with the documentation bug and the need for
    the example. Maybe the code that I used to show it is enough.
    
    I propose two changes:
    
      "If an upvar variable is unset (e.g. x in add2 above),  the
       unset  operation affects the variable it is linked to,
    not the
       upvar variable."
    
    should be:
    
      "If the unset command is invoked with an upvar variable
       as argument (e.g. x in add2 above),  the unset  operation
       affects both the variable it is linked to, and the upvar
       variable."
    
    The phrase:
    
       "There is no way to unset an upvar variable except
        by exiting the procedure in which it is defined.
        However, it is possible to retarget an upvar variable
        by executing another upvar command."
    
    should be:
    
      "There is no way to unlink an upvar variable from the
       linked one without unsetting both, except by exiting the
       procedure in which it is defined or by retargeting the
       upvar variable by executing another upvar command."
    
    
    
    
  2. login: "marcomaggi"
  3. mimetype: "text/plain"
  4. username: "marcomaggi"