Re: What's the magic to using Incr Tcl



On Jun 29, 11:41 am, Troy.Tan...@xxxxxxx wrote:
You probably need to either qualify the commands with the itcl::
namespace:

itcl::class myClass {...}

or import the itcl commands like so:

namespace import ::itcl::*

You can make sure Itcl is loaded and whether you need to do this by
looking at the result of the following commands:

info commands class
info commands itcl::class



You might want to do the latter - just in case someone has some other
OO extension also loaded behind the scenes (snit, or tclOO, or stooop,
etc.)

Of course, if that happens, things are going to be a mess when you do
the import anyways, I suspect...



.



Relevant Pages

  • Re: Q: Slave interpreters
    ... > proc parseCmd { ... you display the error message result... ... > list of Tcl commands instead of nothing? ... you've collected the return value of [info commands] in the ...
    (comp.lang.tcl)
  • Re: ANNOUNCE: TclOO 0.2 Released
    ... or- commands to be a single string command? ... work well was making methods be normal Tcl commands. ... commands to redirect the call to the actual [object method] commands. ... %info commands /C/* ...
    (comp.lang.tcl)
  • Re: access TCL History via C API ?
    ... I forgot to ask if commands list and vars list should be accessed ... by identically I mean lauching the command [info commands] or [info ... access them from C API? ...
    (comp.lang.tcl)