Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-11-07
19:50 • New ticket [1592233fff] radical modification of unknown. artifact: aa810981bf user: msofer

radical modification of [unknown]

Open1592233fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-11-07 19:50:09
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.
Log in (anonymous is fine) to add a comment.