Is there any way to rename itcl::ensemble? If not can be replace itcl::ensemble with some other ensemble without any side effect?
Thanks
Is there any way to rename itcl::ensemble? If not can be replace itcl::ensemble with some other ensemble without any side effect?
Thanks
It looks to me as if rename just works for ensembles:
% package require Itcl
4.0.3
% itcl::ensemble check { part me {} { puts "check me called" } }
% check me
check me called
% rename check myCheck
% myCheck me
check me called
% check me
invalid command name "check"
%
They should work just fine if renamed (the implementation of the ensemble will only be using the name for error reporting) but there might be code that expects a command with the original name to be present. Exactly as normal when using rename
in Tcl, in fact.