Dynamic Type Checking

The type of each piece of runtime data can be determined. The application program tests the type of the data before performing operations on it.


(defun copy-tree (x)
  (if (atom x) x
      (cons (copy-tree (car x))
            (copy-tree (cdr x))) ))

Advantages:

Disadvantages:

Contents    Page-10    Prev    Next    Page+10    Index