unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* scm_* API question
@ 2002-07-30 12:14 rm
  2002-07-31  1:09 ` Christopher Cramer
  2002-07-31 10:11 ` Marius Vollmer
  0 siblings, 2 replies; 22+ messages in thread
From: rm @ 2002-07-30 12:14 UTC (permalink / raw)


Hello List,

i have a short API question:

in my application i have a SCM value that holds 
a list of symbols. I need to 

a) find the module that corresponds to this list,
   i.e. the scm_* counterpart of guile's resolve-module.
   Is:

     SCM my_list, my_module, my_symbol;
     
     ...
     my_module = scm_resolve_module(my_list);

   the right way?

b) access symbols from the module. Is:

     my_symbol = scm_module_lookup(my_module, a_symbol);

   ok?

c) use the module i found in step a. Hmm, the only thing i 
   found so far is 'scm_c_use_module(char *)', but that takes
   a string (even without the enclosing brackets!) so i can't 
   really use this (or do i have to build the string myself
   from my SCM list? Kind of silly, considering the fact that the
   list was built from a string using scm_c_read_string(char *).
   Oh, btw, whad _does_ scm_c_read_string return if string isn't
   a valid S-expression?

 TIA
    
    Ralf Mattes

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2002-08-05 18:45 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-30 12:14 scm_* API question rm
2002-07-31  1:09 ` Christopher Cramer
2002-07-31 10:03   ` scm_* API extension? [was] " rm
2002-07-31 10:10     ` Marius Vollmer
2002-07-31 18:21       ` rm
2002-07-31 21:59         ` Rob Browning
2002-08-01 10:10           ` rm
2002-08-01 16:51             ` Rob Browning
2002-08-05 15:08         ` Marius Vollmer
2002-08-05 16:06           ` rm
2002-08-05 16:49             ` Marius Vollmer
2002-07-31 20:06       ` Christopher Cramer
2002-07-31 22:14         ` Rob Browning
2002-08-01  9:41         ` rm
2002-08-05 17:51           ` Marius Vollmer
2002-08-05 18:12             ` Han-Wen Nienhuys
2002-08-05 18:45               ` Rob Browning
2002-08-05 18:31             ` Rob Browning
2002-08-05 18:33             ` rm
2002-08-05 15:12         ` Marius Vollmer
2002-07-31 10:11 ` Marius Vollmer
2002-07-31 10:30   ` rm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).