• Renaming the proc back to its original name in its redefinition

    From Kavitha MS@21:1/5 to All on Sat Aug 12 10:07:33 2023
    Hi group,

    Below I rename the proc orig to new and redefine the proc orig to handle additional instructions. But before handling additional instruction I want it back to be renamed to its original name because the further instructions are going to use the original
    proc again

    proc func {} {
    puts "In function"
    }

    rename func func_orig

    proc func {} {
    {*}func_orig // here I need the func_orig to be renamed back to its original name func as because the next method_m() calls the original proc func()
    method_m()
    }

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)