next up previous contents
Next: 5.3.5 Dynamic Type Inference Up: 5.3 Type Inference Previous: 5.3.3 Global Function Type

5.3.4 Operation Specific Type Inference

       

Many of the standard Common Lisp functions have special type inference procedures that determine the result type as a function of the argument types. For example, the result type of aref is the array element type. Here are some other examples of type inferences:

(logand x #xFF) tex2html_wrap_inline15923 (unsigned-byte 8)

(+ (the (integer 0 12) x) (the (integer 0 1) y)) tex2html_wrap_inline15923 (integer 0 13)

(ash (the (unsigned-byte 16) x) -8) tex2html_wrap_inline15923 (unsigned-byte 8)



Raymond Toy
Mon Jul 14 09:11:27 EDT 1997