Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-07-29
19:59 • Ticket [786509ffff] TIP#112 Implementation status still Closed with 4 other ... artifact: 104a9d10e8 user: dkf
2008-11-02
18:31 • Ticket [786509ffff]: 7 changes artifact: 5046da6b29 user: dkf
2003-10-14
05:09 • Ticket [786509ffff]: 1 change artifact: 7aeb11c8d3 user: dkf
2003-09-29
21:44 • Ticket [786509ffff]: 7 changes artifact: 22a5a74925 user: dkf
21:44 • Closed ticket [786509ffff]. artifact: 4e69445c93 user: dkf
2003-09-16
05:02 • Ticket [786509ffff]: 4 changes artifact: 364f564777 user: dkf
05:02 • Ticket [786509ffff]: 4 changes artifact: 2b8641e211 user: dkf
05:02 • Add attachment ensemble.patch to ticket [786509ffff] artifact: 6dc9581735 user: dkf
2003-08-30
04:33 • Ticket [786509ffff] TIP#112 Implementation status still Open with 4 other ch... artifact: c38f4269da user: dkf
2003-08-22
06:48 • Ticket [786509ffff]: 4 changes artifact: 2049a8b05c user: dkf
2003-08-21
06:00 • Ticket [786509ffff]: 4 changes artifact: c1f541ecb3 user: dkf
04:50 • Ticket [786509ffff]: 4 changes artifact: b2340f3f28 user: dkf
04:50 • Ticket [786509ffff]: 4 changes artifact: 64f92059a1 user: dkf
2003-08-20
03:41 • Ticket [786509ffff]: 4 changes artifact: c70d66ab3e user: dkf
2003-08-19
04:53 • Ticket [786509ffff]: 4 changes artifact: a33f41f516 user: dkf
03:21 • Ticket [786509ffff]: 4 changes artifact: 1354308dc1 user: jenglish
2003-08-18
21:21 • Ticket [786509ffff]: 4 changes artifact: 5c03aa4c12 user: dkf
21:21 • Ticket [786509ffff]: 4 changes artifact: 02587023bc user: dkf
2003-08-11
16:11 • Ticket [786509ffff]: 4 changes artifact: 5a8050c6bc user: dkf
09:11 • New ticket [786509ffff]. artifact: 355ac2b674 user: dkf

TIP#112 Implementation

Closed786509ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 17 years ago
Descriptionplain2003-08-11 09:11:19
This patch implements TIP #112: Ensembles
See http://purl.org/tcl/tip/112.html for details

Apply with 'patch -p0 <ensemble.patch'
dkfplain2003-08-11 16:11:19
File Added - 58365: ensemble.patch
dkfplain2003-08-18 21:21:01
File Deleted - 58365: 



File Added - 59014: ensemble.patch
dkfplain2003-08-18 21:21:48
Logged In: YES 
user_id=79902

Here's a version with a better API
jenglishplain2003-08-19 03:21:07
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.
dkfplain2003-08-19 04:53:01
Logged In: YES 
user_id=79902

Current code (patchfile 59014) corresponds to Revision 2.2
of the TIP.

Since I don't understand exactly what I'd do to make use of
the TIP90 mechanisms in this context, I'll let someone
explain that stuff a bit more first.  :^)

I'm still not yet 100% sure about the -command handling.  I
want to write some more tests before committing to a final
version.

I'm not sure yet about what to do about loops.  Or whether a
command prefix is really preferable to a script prefix for
-unknown.
dkfplain2003-08-20 03:41:18
File Deleted - 59014: 



File Added - 59187: ensemble.patch

Logged In: YES 
user_id=79902

New patch time.  This one is supposed to implement Revision 2.5
dkfplain2003-08-21 04:50:25
File Added - 59320: ensemble.patch

Logged In: YES 
user_id=79902

Another improvement.  API Revision 2.8
dkfplain2003-08-21 04:50:26
File Deleted - 59187:
dkfplain2003-08-21 06:00:44
File Deleted - 59320: 



File Added - 59327: ensemble.patch

Logged In: YES 
user_id=79902

Patch that implements API Revision 2.9
dkfplain2003-08-22 06:48:35
File Deleted - 59327: 



File Added - 59429: ensemble.patch

Logged In: YES 
user_id=79902

Patch that implements API Revision 2.14
dkfplain2003-08-30 04:33:39
File Deleted - 59429: 



File Added - 60189: ensemble.patch

Logged In: YES 
user_id=79902

Patch that implements API Revision 2.17
dkfplain2003-09-16 05:02:36
Logged In: YES 
user_id=79902

Patch that implements API Revision 2.23
dkfplain2003-09-16 05:02:37
File Deleted - 60189: 



File Added - 61598: ensemble.patch
dkf Closed ticket [786509ffff]. [History diff]2003-09-29 21:44:10
dkfplain2003-09-29 21:44:11
Logged In: YES 
user_id=79902

Patch (plus docs) applied to HEAD
dkf Ticket [786509ffff]: 1 change [History diff]2003-10-14 05:09:48
dkfplain2008-11-02 18:31:35
data_type - 210894
dkfplain2009-07-29 19:59:49
IP - Comment Removed: 130.88.1.31
Log in (anonymous is fine) to add a comment.

Attachments: