On 7/3/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I'm currently after implemeting the Tcl VFS layer
> in the code and I stumbled in some dusty code corners...
> 
> Following commands I never actually used and their
> functionality is already well-done by the Tcl alone:
> 
>   ns_cp              (file copy)
>   ns_mkdir           (file mkdir)
>   ns_rmdir           (file delete)
>   ns_unlink          (file delete)
>   ns_normalizepath   (file normalize)
>   ns_link            (file link -hard)
>   ns_symlink         (file link -symbolic)
>   ns_rename          (file rename)
> 
> I do not know why we would like to maintain those
> commands when Tcl is already giving us a good and
> maintained interface to the needed functionalitly?
> 
> I have some ideas:
> 
> A.
> I could just trash those commands (some of you
> will probably not like it, although this would be
> the best option).
> 
> B.
> I could re-route those calls to their corresponding
> Tcl commands by a means of a tiny wrapper and emit
> a warning message in the log file that those commands
> are deprecated.
> 
> C.
> I could leave the internal code as-is and just emit
> the warning message in the log that those commands
> are deprecated.
> 
> D. I could throw error on those commands telling the
> user to use the Tcl equivalent.
> 
> E.
> I could leave them as-is i.e. they will not be VFS savvy.
> 
> Now, were do you want to go today?
> Zoran


Remove them and add simple wrappers in tcl/compat.tcl

Reply via email to