Event-driven Tcl_Main()
Closed / Fixed218179ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:54:12
OriginalBugID: 2321 RFE
Version: 8.1.1
SubmitDate: '1999-07-06'
LastModified: '1999-08-06'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: 7
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-08-06'
Name:
Q. Alex Zhao
Extensions:
TclX 8.1.1, Img 1.2
Comments:
It seems that Tk_Main() can be easily modified to become an event-driven
Tcl_Main(): just use stderr for error reporting, remove Tk
initialization, and I like the Tcl way of exiting (eval "exit" instead
of calling Tcl_Exit).
DesiredBehavior:
Right now Tcl_Main() is not event-driven. It's useless for building a
Tcl server. For example, a typical server would need to listen on a few
network ports, so it's natural to set up a few "fileevent" handlers. But
Tcl_Main() won't allow multiplexing incoming network packets and console
input. Tk_Main() is event-driven, but who programs a server that
requires a connection to X?
Tcl is event driven if you schedule events and then kick in the
event loop with a "vwait forever".
-- 08/06/1999 hobbs
welch Closed ticket [218179ffff].
[History diff]2000-10-26 08:16:55
dgp Open ticket [218179ffff].
[History diff]2001-04-23 01:49:43
dgp Closed ticket [218179ffff].
[History diff]2001-04-23 01:52:43
Log in (anonymous is fine) to add a comment.