From: Thamer Al-Harbash <tmh@whitefang.com>
Subject: Using (defined? foo) from C.
Date: Fri, 28 Mar 2003 18:11:17 -0500 (EST) [thread overview]
Message-ID: <Pine.BSF.4.51.0303281759210.47991@helena.whitefang.com> (raw)
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
next reply other threads:[~2003-03-28 23:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-28 23:11 Thamer Al-Harbash [this message]
2003-03-29 11:31 ` Using (defined? foo) from C Marius Vollmer
2003-03-29 15:20 ` Thamer Al-Harbash
2003-04-26 11:01 ` Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.BSF.4.51.0303281759210.47991@helena.whitefang.com \
--to=tmh@whitefang.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).