chickadee » moremacros » define-warning-parameter

(define-warning-parameter NAME INIT TYPENAME [BODY...])syntax

Wrapper around define-parameter and warning-guard that defines the parameter NAME to the parameter.

NAME is an identifier.

INIT is some Scheme object.

TYPENAME is an identifier. The basename of a type predicate; see warning-guard.

BODY... as for warning-guard.

(define-warning-parameter scale * procedure)
(scale 23) ;=> Warning: (scale) "bad argument type - not a procedure" 23