Macro Argument Lists
Use of &key, &optional, &rest is common in macros
(defmacro with-resource-string ((resource-string
&key (size 80))
&body body)
`(let ((,resource-string
(allocate-resource-string :size ,size)))
,@body
(free-resource-string ,resource-string)))
Previous slide
Next slide
Back to first slide
View graphic version