Skip to content
Tcl Source Code View Ticket
Login

View Ticket

A testthread command documented incorrectly at the Scriptic

Closed / Fixed219249ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 05:04:09
OriginalBugID: 5634 Bug
Version: 8.2.3
SubmitDate: '2000-05-23'
LastModified: '2000-07-19'
Severity: LOW
Status: Assigned
Submitter: techsupp
ChangedBy: davidg
OS: SunOS
OSVersion: 5.7
Machine: I'm not sure, big servers.
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
Geoff Scott

Extensions:
tcl 8.3.0  and I don't know what else

CustomShell:
Yes but I don't think it has much to do with what I have submitted.

ReproducibleScript:
bash-2.03$ tclsh
% testthread create
5
% testthread -async send 5 {puts putting!!!!}
bad option "-async": must be create, exit, id, names, send, wait, errorproc, transfer, unregister, or test
% testthread send -async 5 {puts putting!!!!}
% putting!!!!

ObservedBehavior:
In the above text box (section 8) I pasted in a session that I had with my tcl shell.  Notice the first time I try to run the testthread send command.  I use the synopsis described at: 

http://dev.scriptics.com/doc/howto/thread_model.html

This of course doesn't work.  When I add async -flag after the "send" token the command works fine.

DesiredBehavior:
I expect the docs to accurately describe the commands.



testthread is decremented in favor of the thread extension.  IOW: ignore the testthread command altogether and build the thread extension.  I'm not sure what state the docs are in, but the code is very much in a state of flux. 
-- 07/19/2000 davidg
andreas_kupriesplain2000-11-17 19:27:33
The point which was made, was that the "thread model" tutorial is incorrect, not the use of "testhread". From the initial and David's comments I infer that (a) the tutorial uses a deprecated command, and (b) it uses it incorrectly. This should be fixed. My proposal: Correct the tutorial to use the commands from the "thread" extension, correctly and then add it to the documentation at this site.
welchplain2000-11-21 02:33:22
This was a dev.scriptics.com web site bug, which was fixed some time ago by
referencing the Thread manual page directly.  The page in question is
http://dev.scriptics.com/doc/howto/thread_model.html
dgp Ticket [219249ffff]: 3 changes [History diff]2001-04-04 12:45:39
Log in (anonymous is fine) to add a comment.