On Tue, 2003-02-18 at 17:21, Andrew Piskorski wrote: > 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. :) >
Come to think of it, I had trouble with 3.5 compiling with object commands for a module I wrote. 4.0 came out, so I just starting using 4.0 instead. I haven't had any problems compiling with 4.0 and objects... --brett -- Brett Schwarz brett_schwarz AT yahoo.com