home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!agate!adrianho
- From: adrianho@barkley.berkeley.edu (Adrian J Ho)
- Newsgroups: comp.lang.tcl
- Subject: Re: How do I imbed tcl in an application
- Message-ID: <ADRIANHO.92Jul30145641@barkley.berkeley.edu>
- Date: 30 Jul 92 19:56:41 GMT
- References: <1992Jul27.175107.7633@rchland.ibm.com> <ADRIANHO.92Jul27175403@barkley.berkeley.edu> <1992Jul28.113922.19882@cas.org>,<156g6sINNnp2@agate.berkeley.edu> <1992Jul29.222557.7305@cpu.com>,<ADRIANHO.92Jul29201730@barkley.berkeley.edu>
- <1992Jul30.130352.11885@cpu.com>
- Organization: University of California, Berkeley
- Lines: 23
- NNTP-Posting-Host: barkley.berkeley.edu
- In-reply-to: gwlester@cpu.com's message of Thu, 30 Jul 1992 13:03:52 GMT
-
- In article <1992Jul30.130352.11885@cpu.com> gwlester@cpu.com (Gerald W. Lester) writes:
- > I agree, your proposed change would be nice, but the poster wanted
- >to be able to extend a command from *Tcl* your suggestion only
- >directly allows it to be done from *C*.
-
- If I read the code correctly, my changes automagically take care of
- the Tcl case too, since Tcl_ProcCmd() calls Tcl_CreateCommand() with
- argv[1] as the command name anyways.
-
- > Another change that would be noce is to extend the proc command to take
- >an optional fourth arguement that would be a tcl command to invoke when the
- >procedure is deleted.
-
- Adding that just requires a few changes to Tcl_ProcCmd() to accomplish
- that, but I can't think of any application for this enhancement. Can
- you suggest any concrete examples? (The reason I ask is coz I figured
- John would've added it a long time ago if it had any utility.)
- --
- -----------------------------------------------------------------------------
- Adrian Ho, He With The Embarrassingly *Dead* Passion ** Phone: (510) 642-5563
- System Manager, CFD Lab, ME Dept, UC Berkeley * adrianho@barkley.berkeley.edu
- Maintainer, Tcl/Tk Contrib Archive ---- barkley.berkeley.edu [128.32.142.237]
- Send all Tcl/Tk Archive-related stuff to tcl-archive@barkley.berkeley.edu
-