[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating a list of procedures in a file.
From: |
Richard Shann |
Subject: |
Re: Creating a list of procedures in a file. |
Date: |
Thu, 19 Nov 2009 17:53:35 +0000 |
Thanks for this: the only problem might be that it is the top-level
definitions in Denemo's initialization script that I want to list. I
haven't created a module for it (I wouldn't know how! But as it is very
much an end user, I suppose there is no need).
I tried '(current-module) where you have '(the denemo module) with a
(no code for module (current-module) error message.
Any further thoughts?
Thanks again,
Richard
> From: address@hidden (Ludovic Court?s )
> Subject: Re: Creating a list of procedures in a file.
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=utf-8
>
> Hi,
>
> Richard Shann <address@hidden> writes:
>
> > I wonder if anyone knows of a method to extract a list of top-level
> > procedure definitions from a string?
>
> You can use module-for-each:
>
> (module-for-each (lambda (name var)
> (format #t "variable `~A', value `~s'~%" name
> (variable-ref var)))
> (resolve-interface '(the denemo module)))
>
> Is it what youre looking for?
>
> Thanks,
> Ludo.
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> guile-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/guile-user
>
>
> End of guile-user Digest, Vol 84, Issue 12
> ******************************************