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: felix winkelmann
Subject: Re: [Chicken-users] Re: A few questions
Date: Fri, 1 Feb 2008 12:50:40 +0100

On Jan 31, 2008 5:45 PM, Mark Fredrickson <address@hidden> wrote:
>
> I assume you mean extending (declare (exports ....)) to something like
> (declare
>    (exports
>      ((square ((required int) (docstring "Returns the square of it's
> input"))))))
>

I recommend not to use "declare". There is already a hook
(##compiler#process-lambda-documentation) for normal lambdas
which might be useful. This is only for compiled code, though.

> Compiling with -X docinfo could add all of this to a unit.db file
> which could be optionally loaded, so we could eliminate overhead for
> cases where you don't need the info. Perhaps (use-with-info xyz) to
> load?

A separate documentation database would be relatively straightforward
with the currently available hook.


cheers,
felix




reply via email to

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