Tcl Source Code

View Ticket
Login
Ticket UUID: 2520559
Title: another [namespace import] misfeature?
Type: RFE Created on: 2009-01-19 18:26:10
Submitter: dgp Assigned to: dgp
Subsystem: 21. [namespace] Severity:
Priority: 5 Medium Last modified: 2009-01-19 18:26:10
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
came up in the chat:

% namespace eval ns {proc foo {} {}}
% namespace eval ns namespace export foo
% namespace eval ns namespace import ::ns::foo
import pattern "::ns::foo" tries to import from namespace "ns" into itself

Is the error really useful?  Or a relic like
the errors thrown by idempotent [namespace import]s
that has already been corrected?