From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thamer Al-Harbash Newsgroups: gmane.lisp.guile.user Subject: Using (defined? foo) from C. Date: Fri, 28 Mar 2003 18:11:17 -0500 (EST) Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1048893162 6655 80.91.224.249 (28 Mar 2003 23:12:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2003 23:12:42 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Mar 29 00:12:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18z31d-0001jC-00 for ; Sat, 29 Mar 2003 00:12:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18z31T-0007YY-06 for guile-user@m.gmane.org; Fri, 28 Mar 2003 18:12:31 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18z30a-0006u2-00 for guile-user@gnu.org; Fri, 28 Mar 2003 18:11:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18z30V-0006so-00 for guile-user@gnu.org; Fri, 28 Mar 2003 18:11:32 -0500 Original-Received: from helena.whitefang.com ([216.254.175.50]) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18z301-0006Qj-00 for guile-user@gnu.org; Fri, 28 Mar 2003 18:11:01 -0500 Original-Received: (qmail 48741 invoked from network); 28 Mar 2003 23:11:17 -0000 Original-Received: from helena.whitefang.com (216.254.175.50) by 0 with SMTP; 28 Mar 2003 23:11:17 -0000 X-X-Sender: shadows@helena.whitefang.com Original-To: guile-user@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1746 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1746 I'm attempting to do binding reflection with libguile from within C. However, I cannot find a way to create a symbol without defining it. There is no way to pass a C string to an equivalent of scm_definedp() without using scm_define() to create the symbol in the first place. A bit of a paradox :) Is there anyway to create a symbol SCM in C without defining it in the current environment? If not is there a way of passing a C string as a symbol name to do reflection with? I'm looking for something as simple as evaluating (defined? foo) where foo is variable and receive the boolean value back. -- Thamer Al-Harbash http://www.whitefang.com/ (if (> pressure too-much-pressure) 'play-ac2 'work) _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user