Tcl Source Code

View Ticket
Login
Ticket UUID: 545325
Title: info level doesn't report namespace eval
Type: Bug Version: obsolete: 8.3.4
Submitter: nobody Created on: 2002-04-17 19:06:33
Subsystem: 21. [namespace] Assigned To: msofer
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-04-19 01:07:53
Resolution: Fixed Closed By: msofer
    Closed on: 2002-04-18 18:07:53
Description:
OS: Windows 2000 (NT 5.0), Solaris SunOS 5.5.1

Problem Behavior: [info level n] returns empty string 
for "namespace eval"

Expected behavior (man uplevel):
"For example, info level 1 will return a list 
describing a command that is either the outermost 
procedure call or the outermost namespace eval 
command."

Concise Code Sample:
 namespace eval foo {info level 1}
User Comments: msofer added on 2002-04-19 01:07:53:

File Added - 21457: 545325.patch

Logged In: YES 
user_id=148712

Donal, thanks for the analysis. Fixed in the HEAD with the
enclosed patch; I'll fix it in core-8-3-1-branch too.

dkf added on 2002-04-18 15:44:16:
Logged In: YES 
user_id=79902

The problem is because Tcl_PushCallFrame sets up the command
for the appropriate call frame to be empty (0 length list);
fix that, and the problem will go away.

Attachments: