- (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.
(use parameter-item) (define-warning-variable scale * procedure) (scale 23) ;=> Warning: (foo) "bad argument type - not a procedure" 23