From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rm@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: scm_* API question Date: Tue, 30 Jul 2002 14:14:36 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <20020730121436.GA4465@www> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028030628 16646 127.0.0.1 (30 Jul 2002 12:03:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2002 12:03:48 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17ZVj9-0004KM-00 for ; Tue, 30 Jul 2002 14:03:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17ZVjY-0002DC-00; Tue, 30 Jul 2002 08:04:12 -0400 Original-Received: from www.elogos.de ([212.18.192.92]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17ZVir-00028j-00 for ; Tue, 30 Jul 2002 08:03:29 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5001) id 4252A1049A2; Tue, 30 Jul 2002 14:14:36 +0200 (CEST) Original-To: guile-devel@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.24i Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:889 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:889 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