Re: What's the magic to using Incr Tcl
- From: "Jeff Godfrey" <jeff_godfrey@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 15:27:31 GMT
"Andrew Falanga" <af300wsm@xxxxxxxxx> wrote in message
news:1183129312.639497.34400@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've figured out that
I must use a "package require Itcl" in my script to load the
package.
however, then the interpreter bails saying that the command "class"
is
unknown. I've also tried "Class" although none of the examples in
this tutorial use an upper case C in the word class.
Andrew,
All of the itcl commands are kept in an "itcl" namespace. So, you'll
either have to reference them that way, as in:
itcl::class ...
or, you'll need to import them into your namespace, as in:
namespace import itcl::*
After that, this should work:
class ...
Jeff
.
- References:
- What's the magic to using Incr Tcl
- From: Andrew Falanga
- What's the magic to using Incr Tcl
- Prev by Date: What's the magic to using Incr Tcl
- Next by Date: Re: What's the magic to using Incr Tcl
- Previous by thread: What's the magic to using Incr Tcl
- Next by thread: Re: What's the magic to using Incr Tcl
- Index(es):
Relevant Pages
|