How to remove the Tcl procedure?

How to remove tcl procedure?

Can

  • unset variable
  • override alias with interp alias {} myproc {} otherproc ,
  • override proc with one defined inside another namespace with namespace import -force .

But I did not find a way to make the procedure unknown.

+7
source share
1 answer

Use rename to remove proc

 rename myproc "" 

Example:

 % proc myproc {} { puts "hello world" } % myproc hello world % rename myproc "" % myproc invalid command name "myproc" % 
+12
source

All Articles