Skip to content
Tcl Source Code View Ticket
Login

View Ticket

another [namespace import] misfeature?

Open2520559fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-01-19 18:26:10
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?
Log in (anonymous is fine) to add a comment.