Version 0 of downlevel

Updated 2013-11-21 08:27:26 by mistachkin

The downlevel command (currently available in Eagle only), is used to evaluate a script in the variable context that existed just prior to the previous uplevel command.

Example:

    proc deepdown {} {
      lappend a 1
      uplevel 1 {
        lappend a 2
        downlevel {
          lappend a 3
          uplevel #0 {
            lappend a 4
            downlevel {
              lappend a 5
            }
          }
        }
      }
      return $a
    }

    deepdown; # returns 1 3 5