Overview
| Artifact ID: | 1da65e50f94bc0f6f840220c9b140ccb72c8b52c |
|---|---|
| Ticket: | 218179ffffffffffffffffffffffffffffffffff
Event-driven Tcl_Main() |
| User & Date: | nobody on 2000-10-26 00:54:12 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
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 - foundin changed to: "final: 8.1.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "Event-driven Tcl_Main()"
- type changed to: "RFE"