conflict betw. namespaces, interp, and DeleteAlias causes co
Closed / Fixed218507ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:27
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
welch Closed ticket [218507ffff].
[History diff]2000-10-26 08:23:18
dgp Ticket [218507ffff]: 3 changes
[History diff]2001-04-16 22:44:18
Log in (anonymous is fine) to add a comment.