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: [email protected] (Ludovic Court?s )
> Subject: Re: Creating a list of procedures in a file.
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8
> 
> Hi,
> 
> Richard Shann <[email protected]> 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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/guile-user
> 
> 
> End of guile-user Digest, Vol 84, Issue 12
> ******************************************



Reply via email to