Adding new application commands

Nenad Ivezic (ni10+@andrew.cmu.edu)
Sat, 8 Jan 1994 20:58:36 -0500 (EST)

I hope somebody can help me with this one!

Well, what I am trying to do is to add an application which will interact with
tkined. Hence, I thought that an obvious thing to do is to register new
C commands in the same Tcl_AppInit function that resides in tkined.c
which is called from the main.
There, I would simply call myapp_init procedure that ought to register
new commands to the tcl interpreter.

My trouble is that the interpreter forgets the new command ones I try to
invoke it from a tcl script. I say forget because it recognizes it immediately
after the command is registered in the Tcl_AppInit procedure.

What is going on???

I am not sure what is happening and need help pretty fast.
Thanks for your suggestions in advance!

Nenad Ivezic
Carnegie Mellon University
Pittsburgh, PA, USA