How do I remove a tcl procedure?
One can
unset
a variable, interp alias {} myproc {} otherproc
,namespace import -force
. But I did not find a way to make a procedure unknown.
Use rename
to delete a proc
rename myproc ""
Example:
% proc myproc {} {
puts "hello world"
}
% myproc
hello world
% rename myproc ""
% myproc
invalid command name "myproc"
%