Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-04-19
01:07 • Add attachment 545325.patch to ticket [545325ffff] artifact: 9fa89b9fdb user: msofer
01:07 • Closed ticket [545325ffff]: info level doesn't report namespace eval plu... artifact: b3135b2c31 user: msofer
2002-04-18
15:44 • Ticket [545325ffff]: 6 changes artifact: 2ced720031 user: dkf
02:14 • Ticket [545325ffff]: 2 changes artifact: ddcfff96b5 user: msofer
2002-04-17
19:06 • New ticket [545325ffff]. artifact: 56cfebbe26 user: nobody

info level doesn't report namespace eval

Closed / Fixed545325ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-04-17 19:06:33
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}
msofer Ticket [545325ffff]: 2 changes [History diff]2002-04-18 02:14:52
dkfplain2002-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.
msoferplain2002-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.
Log in (anonymous is fine) to add a comment.

Attachments: