find-production [Function]


Purpose

The find-production function, a robust variant of get-production, searches for the production having a specified name.

Syntax

find-production production &key no-warning-p

Arguments

The production argument is a production rule, or the name of a production rule.

If the no-warning-p argument is t, then no warning is generated if Loom cannot find a production having the specified name.

Value

The find-production function returns the production with the specified name, or nil if none is found.

Remarks

The find- functions tend to be more flexible, slower, and do more error-checking than the get- functions (such as get-production).

Examples

(find-production 'P2) ==> |PRODUCTION|P2 
(find-production 'almost-full-container :no-warning-p t) ==> 
    |PRODUCTION|ALMOST-FULL-CONTAINER

See Also

Last modified: Jun 1 1995