Overview
| Artifact ID: | 1354308dc180eb9cdf5d41134dc27729bb4dd959 |
|---|---|
| Ticket: | 786509ffffffffffffffffffffffffffffffffff
TIP#112 Implementation |
| User & Date: | jenglish on 2003-08-19 03:21:07 |
Changes
- icomment:
Logged In: YES user_id=68433 Couple notes on the API -- namespace ensemble create ?cmdName? ?-option value ...? could be replaced with namespace ensemble create ?-command cmdName? ?-option value ...? since currently [namespace ensemble create -command foo] is an error ("-command is read-only"). The -unknown handler could (should?) use the TIP 90 -returncode / -returnlevel mechanism; that way the ensemble command can distinguish a TCL_CONTINUE meaning "reparse" from a TCL_CONTINUE that the resolved command returns. I'd also suggest treating anything other than a TCL_OK, TCL_CONTINUE, or TCL_RETURN return code as an "unexpected return code error". Beware infinite loops in the -unknown handler: namespace eval foo { namespace create -unknown "continue;#" } I'd prefer that the -unknown handler be a command prefix, not a script prefix. - login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"