Package: blackthorn

Macro with-root

Lambda List

with-root (root &body body)

Arguments

  • root -- The new root component.
  • body -- A block of code to execute with the new root.

Details

Creates a new context where root is the root object. Upon exiting the block, the root is restored to the old root, as per a let on a special variable. Calls enter and leave on the old and new roots as they enter and leave scope, if they differ.
 

See also