Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7641c740428c602f9972afa7ec6430620050bc96b3d6c3e190d82c33ad1cb9b9
Ticket: 9eac2d8a8d6da83d4554afd55865a54691c4c58d
uplevel: level sniffing for single arg, default-level case (absolute level specifier only)
User & Date: anonymous on 2019-05-07 22:07:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Following up on the conversation at IRC:
    
    «dkf» We used to do a nonsense parse where if the first argument started with a digit (IIRC), Tcl would assume that it was a level _even if that meant there were no other arguments_ (which was an error case)
    
    «dkf» it shouldn’t ever consider an argument to be a level if there’s only one argument
    
    In current 8.7, this holds but not for a single arg starting with a hash:
    
    % namespace eval ::ns1 { uplevel {#0 b}}}
    bad level "#0 b"
    
    should read: invalid command "#0"
    
    «dkf» ’tis a bug
    «dkf» in 8.7
    
  5. foundin changed to: "core-8-branch"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "d4d1d8192a46acf2c7d58cddc1040ecdbc9c9d77"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "22. [proc] and [uplevel]"
  15. title changed to:
    uplevel: level sniffing for single arg, default-level case (absolute level specifier only)
    
  16. type changed to: "Bug"