chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Re: A few questions


From: Alex Queiroz
Subject: Re: [Chicken-users] Re: A few questions
Date: Thu, 31 Jan 2008 14:53:39 -0200

Hallo,

On Jan 31, 2008 2:51 PM, David Brown <address@hidden> wrote:
> On Thu, Jan 31, 2008 at 02:43:39PM -0200, Alex Queiroz wrote:
>
> >(define-macro (defun name args docstr . body)
> >   `(let ()
> >      (define ,name (lambda ,args ,@body)
> >      (put! ,name 'docstring ,docstr)))
>
> In common lisp, the docstring is optional.  Basically, if (string?
> docstring) then use it, otherwise it is the beginning of the body.
>

     Well, I was stealing *names*. :-)

Cheers,
-- 
-alex
http://www.ventonegro.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]