tcl - ::itcl::delete throws error "invalid command name" -
i using itcl delete command delete objects , classes. however, tcl interpreter says "invalid command name "delete". here partial code snippet.
% itcl::find classes datapath point datapath_point itcl::find objects datapath_point0 datapath_point1 datapath0 % itcl::delete object datapath_point0 invalid command name "delete"
thanks, boppu
with peter, comments error in code. in 1 of base class, had following code.
destrutor { delete object $this }
here, delete namespace missing. though add "itcl::delete", endup in error. simple , correct solution should empty destructor.
destructor { }
Comments
Post a Comment