[plt-scheme] Listing all exported symbols/structures of a module/extension

From: Dmitriy.Zavin at infineon.com (Dmitriy.Zavin at infineon.com)
Date: Thu Aug 26 21:49:02 EDT 2004

 >I am trying to implement a very slim RPC. The code on the 
 >remote end was
 >generated through SWIG. Thus its loaded at startup with
 >What I need is a way to get a list of all procedures that are exported
 >by the extension at hand. Also, a list of all the structures would be
 >nice too. Basically I want something cool like this:
 >(eval (get-remote-extension-stuff port))
 >(remote-proc1 (make-remote-struct1 'a 'b 'c))

Sorry, this is not quite what I wanted to say. I meant I could do
something like

(do-remote-exec port 'remote-proc1 (make-remote-struct1 'a 'b 'c) 'd 'e)

My (do-remote-exec) function would take care of (print-convert)ing the
To its appropriate text representation and such, and the remote end
Recreate the objects and execute the procedure.
 >Is something like that even possible??
 >Through SWIG, it would be pretty tough to define the rpc-handler list
 >that the XML-RPC module requires. 
 >The local user knows the list of all the functions, but local scheme
 >instance does not.
 >Can someone give me a hand? If what I am trying to do is "Not A Good
 >Thing (tm)", how else would one accomplish what I need?
 >Thanks in advance for the help.

P.S. Feel free to slap me if what I am saying is utter non-sense. I'm a
scheme newbie. :)

Posted on the users mailing list.