|
2006-10-18
| ||
| 05:02 | • Ticket [1578235fff] kill namespace inscope status still Closed with 3 othe... artifact: 0c2704751a user: msofer | |
| 05:02 | • Closed ticket [1578235fff]. artifact: 0445261ff3 user: msofer | |
|
2006-10-16
| ||
| 14:45 | • New ticket [1578235fff]. artifact: 7d1e300dde user: msofer | |
kill [namespace inscope]
Closed / Rejected1578235fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-10-16 14:45:38
According to the docs "This command is not expected to
be used directly by programmers; calls to it are
generated implicitly when applications use [namespace
code] commands to create callback scripts ..."
With 8.5 features it is possible to implement
[namespace code] directly (up-to inclusion in the
namespace ensemble) as
proc nscode script {
set ns [uplevel 1 [list namespace current]]
set body "$script \{expand\}\$args"
return [list ::apply [list args $body $ns]]
}
so that
namespace code ns script ?arg ...?
becomes
::apply [list args "$script \{expand\}\$args" ns]
?arg ...?
Note that it is trivial to implement this in C and
include it in the ensemble: the proc above is an
illustration, not an actual implementation suggestion.
This would also allow us to retire crazy aunt Tillie
from her duties in ::unknown :)
msoferplain2006-10-18 05:02:42
Logged In: YES user_id=148712 *That* does not work ...
msofer Ticket [1578235fff]: 3 changes
[History diff]2006-10-18 05:02:43
Log in (anonymous is fine) to add a comment.