chickadee » procedure-decoration » decorate-procedure

(decorate-procedure PROCEDURE PROCEDURE-DECORATOR [ARGUMENTS ...]) -> procedureprocedure

Decorate the PROCEDURE with the PROCEDURE-DECORATOR.

The PROCEDURE-DECORATOR INITIALIZER is called on the first invocation for PROCEDURE and the DECORATOR on all subsequent invocations.

The optional ARGUMENTS are passed to the invoked PROCEDURE-DECORATOR constructor, as above.

On the first invocation a GC will be performed.

Returns the decorated procedure.