Re: Using Tcl_*ObjCmd in extensions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Using Tcl_*ObjCmd in extensions

From: Don Porter <dgp@email.nist.gov>
Date: Wed Dec 21 2005 - 06:02:03 CET

Joe English wrote:
> First: Yes, it's (mildly) evil. The main reason it's evil is that
> your code doesn't know, and can't know, what the Tcl_*ObjCmd in
> question expects to get passed as clientData.

FWIW, I think this can be discovered via Tcl_GetCommandInfo().

> You probably want to use Tcl_EvalObjv() instead.

Yes, I still think that's the right answer.

-- 
| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@nist.gov             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|
Received on Fri Dec 23 19:02:42 2005