guile-user
[Top][All Lists]
Advanced

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

Re: Creating a list of procedures in a file.


From: Ludovic Courtès
Subject: Re: Creating a list of procedures in a file.
Date: Thu, 19 Nov 2009 01:12:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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 you’re looking for?

Thanks,
Ludo’.





reply via email to

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