Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f72f6b00ccbaa4ed44f03f06ec2ca82475f3fc4c
Ticket: 218507ffffffffffffffffffffffffffffffffff
conflict betw. namespaces, interp, and DeleteAlias causes co
User & Date: nobody on 2000-10-26 01:01:27
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 757 Bug
    Version: 8.0.3
    SubmitDate: '1998-10-22'
    LastModified: '1999-08-14'
    Severity: SER
    Status: Released
    Submitter: admin
    ChangedBy: hobbs
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '1999-08-14'
    FixedInVersion: 8.2
    ClosedDate: '2000-10-25'
    
    
    I've encountered an interesting problem with the following script:
    
        namespace eval ::test {
            namespace export init myProc
    
            variable Test
        }
    
        proc test::myProc { } { 
            puts "myProc"
        }
    
        proc test::init { } {
            variable Test
    
            global tcl_version
            global tcl_patchLevel
            global tcl_platform
    
            puts "$tcl_version ($tcl_patchLevel)"
            parray tcl_platform
    
            set Test(interp) [interp create -safe]
            $Test(interp) alias test::myProc test::myProc
            $Test(interp) alias test::myProc {}
        }
    
        test::init
    
    It produces the following output:
    
        8.0 (8.0)
        tcl_platform(byteOrder) = bigEndian
        tcl_platform(machine)   = 9000/715
        tcl_platform(os)        = HP-UX
        tcl_platform(osVersion) = B.10.20
        tcl_platform(platform)  = unix
        DeleteAlias: did not find alias to be deleted
        Abort (core dumped)
    
    I've reproduced this on Solaris, too.
    
    I'm guessing that the namespace is confusing DeleteAlias and perhaps I
    shouldn't do it quite this way but a core dump?!?
    
                                           Chris
    
    
    I receive no error on NT or Solaris7 with 8.2.0, so I assume
    it was fixed sometime in/before 8.2.0. 
    -- 08/14/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    conflict betw. namespaces, interp, and DeleteAlias causes co
    
  11. type changed to: "Bug"