FunctionPackage: exclToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.1
Unrevised

add-typep-transformer

Arguments: type function

This function is called for its side effects. The return value has no meaning. This function tells the compiler that a typep form:

(typep x 'type)

can be transformed into the form:

(funcall predicate x)

The compiler will make the transformation where possible.

type must be a type, typically defined by the user with deftype. predicate should be a function object or a symbol naming a function. That function must accept any Lisp object as a single argument and return nil if the object is not of type type, true if it is of type type. remove-typep-transformer removes the transform.

See compiling.htm for general information on compiling and see Adding typep-transformers in that document for more information on typep transforms.


Copyright (c) 1998-2001, Franz Inc. Berkeley, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.1 update # 1. This page was not revised.
Created 2001.12.15.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.1
Unrevised