Public feed #888670

Stuff

public text v1 · immutable
Raw Edit
·published 2008-02-02 09:23 UTC
rendered paste body
(set *help* (table))
(set def (annotate 'mac
            (fn (name parms . body)
              `(do (sref sig ',parms ',name)
                   (if (is (type ',(car body)) 'string)
                       (if (is (is ',(cdr body) nil) nil)
                           (= (*help* ',name) ,(car body))))
                   (safeset ,name (fn ,parms ,@body))))))
(set help (annotate 'mac
             (fn (name) `(if (is (*help* ',name) nil)
                             "Documentation unavailable"
                             (*help* ',name)))))