Overview
| Artifact ID: | eb8aa0d62f96fe0bf5172f8438a0947d7cdcd3a3 |
|---|---|
| Ticket: | 1711975fffffffffffffffffffffffffffffffff
Tcl_MainEx() (like Tk_MainEx()) |
| User & Date: | nijtmans on 2010-07-05 15:38:52 |
Changes
- assignee changed to: "nijtmans"
- closedate changed to: "2010-07-05T08:38:52"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Ok, thanks for your explanation! Is your binding available somewhere? I would like to have a look at it. That said, the prefered way of defining an extension is to have a XXX_Init (say OCaml_Init here), and arrange for this extension to be loaded with "package require OCaml". This way, the standard tclsh and wish can be used. This OCaml_Init function should do everything you describe, including calling back to OCaml to do the necessary initialization. If you need non-standard startup arguments, you can define your own parameters, just as Tk does. Or, if you want to embed Tcl in an Ocaml interpreter, I could imagine some fancy notifier work, but Tcl contains all machinery to do that. For all of that, a special Main or appinitproc is not necessary. The only excuse for defining your own Main or appinitproc is on a platform which does not support dynamical loading. Apparently your platform does, so what's the problem? Originally, I was under de impression that you wanted to define a Tcl_MainEx, and a macro Tcl_Main which was defined exactly like the Tk_Main equivalent. Tk_MainEx is not documented, on purpose, because everyone should use Tk_Main in stead. Granting your request without defining a macro means that the new Tcl_MainEx should be documented, which requires a TIP. And this TIP promotes a non-recommended use of Tcl, for which there is an alternative. So, this TIP has little chance to be accepted (I would have to vote no to that.... because of exactly this reason). Anyway, if your binding code is available somewhere, I am willing to have a look and give advise how to do it. Thanks for your suggestion. Sorry!
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "nijtmans"