Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6791daeac0cc6b35844683ddc91fabc835f8418c
Ticket: 477c24cb39e3c502dec0329583256072211ea4d3
rename ::set and lose custom return options
User & Date: pooryorick on 2016-08-31 11:17:04
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In the following example, <code>-custom1 1</code> is missing from
    <code>$options</code> in <code>p2</code>
    
    <code><verbatim>
    namespace eval ns1 {
    	rename ::set [namespace current]::set
    	interp alias {} ::set {} [namespace current]::set
    }
    
    proc p1 {} {
    	return -options {-custom1 1} {result 1} 
    }
    
    proc p2 {} {
    	catch {set status [p1]} result options
    	puts $options
    } 
    
    p2
    </verbatim></code>
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "18. Commands M-Z"
  15. title changed to: "rename ::set and lose custom return options"
  16. type changed to: "Bug"