From 92f58e96e1edc9bc3944cb87d0ee5d3a94157824 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 18 Jun 2021 09:21:19 -0700 Subject: add PROPAPPARGS and some Postfix properties Signed-off-by: Sean Whitton --- src/combinator.lisp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/combinator.lisp') diff --git a/src/combinator.lisp b/src/combinator.lisp index bcba1c3..636893e 100644 --- a/src/combinator.lisp +++ b/src/combinator.lisp @@ -21,6 +21,15 @@ ;;;; Property combinators (defmacro define-function-property-combinator (name args &body body) + "Define a function property combinator NAME with lambda list ARGS. + +Usage notes: + +- If you need to read individual arguments to propapps passed as arguments to + NAME, call PROPAPPARGS to access them. For passing a whole list of args on + to a property subroutine, just take the cdr of the propapp. + + For an example showing both techniques at work, see POSTFIX:MAPPED-FILE." (multiple-value-bind (forms declarations docstring) (parse-body body :documentation t) `(defun ,name ,args -- cgit v1.2.3