Artifacts Associated With Ticket 672050
Ticket change [31e44623f2] (rid 93514) by elfring on 2003-01-21 21:10:10:
- assignee initialized to: "vasiljevic"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The programming interface for the thread package consists of several functions that are grouped into a few namespaces. A lot of functions have got a parameter/argument that specifies a subcommand at the first position. How do you think about the following suggestion? I would like to try an interface design like that: Examples... 1. thread::mutex lock instead of thread::mutex::lock 2. thread::cond::create instead of thread::cond create 3. tsv::array::names instead of tsv::array names Does the increased use of namespace functions make a valuable difference in speed and maintenance? Is it a step nearer to an object oriented TCL class library for thread programming? - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "elfring"
- subsystem initialized to: "80. Thread Package"
- title initialized to: "function interface design and namespaces"
- type initialized to: "RFE"
Ticket change [06e7053c24] (rid 89289) by nobody on 2003-01-22 15:32:30:
- icomment:
Logged In: NO I have nothing against that. It will however yield no speed imporvements. Ok, the maintenance might be simpler. The ideal OO-like approach would be: set mutex [thread::mutex new] $mutex lock But, this would defeat the byte-compiler and impose speed limits. Also, since the "$mutex" command will then be limited to single interpreter, you'd loose the transparency of the item (in this case the mutex) among threads, so it will even more complicate the matter. Therefore, this is the approach I've dropped from further considerations. Which leaves us with your proposed change. As I said, I see no real problems in that. Zoran
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [2c21d08361] (rid 118847) by dkf on 2003-10-15 22:05:15:
- icomment:
Logged In: YES user_id=79902 What about leveraging TIP#112 in Tcl 8.5?
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [ca7ec7b0f6] (rid 95357) by elfring on 2003-10-16 15:22:01:
- icomment:
Logged In: YES user_id=572001 TIP #112: Ensembles are Namespaces are Commands http://www.tcl.tk/cgi-bin/tct/tip/112.html This will be an useful interface for the threads library, too.
- login: "elfring"
- mimetype: "text/plain"
- username: "elfring"
- icomment: