Tcl Source Code

View Ticket
Login
Ticket UUID: 1592233
Title: radical modification of [unknown]
Type: RFE Created on: 2006-11-07 19:50:09
Submitter: msofer Assigned to: msofer
Subsystem: 45. Parsing and Eval Severity:
Priority: 5 Medium Last modified: 2006-11-07 19:50:09
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
Tcl's [unknown] and [namespace unknown] processors are
too ambitious: they fulfill two different tasks.

(1) they help resolve the command that was not found,
possibly autoloading or creating it in the process

(2) they invoke the newly found command in their
caller's scope

These two functions should be separated, unknown
processing should do only (1) - just like the -unknown
processing for namespace ensembles: pass back a command
that will do what you want, and let the caller invoke
it himself.

Furthermore, the context in which the command is to be
resolved should be passed as an explicit argument for
[unknown].

This FR is completely unacceptable before 9.0, possibly
after that too. Written to fish for comments/ideas.