Variable Types
Lisp uses dynamic type checking, or type checking performed at runtime. Many other languages use static type checking, or type checking performed at compile time. In those languages, a variable has the same type throughout its lifetime (its lexical scope); every use of a variable is checked to make sure it has the correct type.
The basic types in the languages are:
| Scheme | Pascal | C++ | Java |
| integer | integer | int | long |
| real | real | float | double |
| character | char | char | char |
| boolean | boolean | int | boolean |
| string | char [] | char [] | |
| #f | void | void | |
Contents    Page-10    Prev    Next    Page+10    Index