On Tue, Feb 18, 2003 at 05:12:38PM -0800, Brett Schwarz wrote:
> As a side note, you may want to look into using the Object interface to
> Tcl, i.e. Tcl_CreateObjCommand. Of cource there may be reasons why you
> are doing it this way, but thought I would just mention it...
:) The reason was in this comment which I clipped out for brevity:
Tcl_CreateCommand(interp, "bbapi", BB_TclCmd, NULL, NULL);
/* For Tcl 8.x, should probably be using Tcl_CreateObjCommand
rather than Tcl_CreateCommand, but it doesn't compile right for
me - I dunno why. [EMAIL PROTECTED], 2001/11/01 09:35 EST */
The Tcl overhead from my custom commands was never even showing up in
my performance profiling, so once I learned more about using Tcl's
object interface, I never bothered going back and trying to object-ify
that again. I'll save it for a rainy day. :)
--
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com