GNU Info

Info Node: (librep.info)Void Variables

(librep.info)Void Variables


Next: Defining Variables Prev: Scope and Extent Up: Variables
Enter node , (file) or (file)node

Void Variables
--------------

   A variable which has no value is said to be "void", attempting to
reference the value of such a symbol will result in an error. It is
possible for the most recent binding of a variable to be void even
though the inactive bindings may have values.

 - Function: boundp variable
     Returns true if the symbol VARIABLE has a value.

 - Function: makunbound variable
     This function makes the current binding of the symbol VARIABLE be
     void, then returns VARIABLE.

          (setq foo 42)
              => 42
          foo
              => 42
          (boundp 'foo)
              => t
          (makunbound 'foo)
              => foo
          (boundp 'foo)
              => ()
          foo
              error--> Value as variable is void: foo


automatically generated by info2www version 1.2.2.9