Overview
| Artifact ID: | 42801e03950e59dcf09b010dac283c255469e616 |
|---|---|
| Ticket: | 560297ffffffffffffffffffffffffffffffffff
[namespace forget] matches by name only |
| User & Date: | dgp on 2004-08-28 05:08:27 |
Changes
- icomment:
Logged In: YES user_id=80530 It is the function of [namespace forget] to delete imported command(s) from the current namespace of the interp, based on pattern arguments. An "imported command" is any for which {$cmd ne [namespace origin $cmd]}. Simple patterns (no namespace separator) should match against simple names of imported commands and delete those that match. This means problem (3) isn't really a problem at all. Whether the imported command got into the current namespace via [namespace import] or [rename] shouldn't really matter. For namespace qualified patterns, the apparent intent is to control deletion of import command based on where they point to. Based on that, is seems the correct behavior is to loop over the imported commands in the current namespace, determine the [namespace origin] of each, and match that against the qualified pattern. That algoritthm would correct problems (1) and (2). - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"