unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: proposal: scm_c_public_ref et al
Date: Sun, 06 Mar 2011 23:22:49 +0100	[thread overview]
Message-ID: <87zkp77uti.fsf@gnu.org> (raw)
In-Reply-To: m34o7gcx0k.fsf@unquote.localdomain

Hi!

Andy Wingo <wingo@pobox.com> writes:

>     SCM scm_public_lookup (SCM module_name, SCM sym);
>     SCM scm_private_lookup (SCM module_name, SCM sym);
>
>     Look up a variable bound to SYM in the module named MODULE_NAME.  If
>     the module does not exist or the symbol is unbound, signal an
>     error.  The "public" variant looks in the public interface of the
>     module, while scm_private_lookup looks into the module itself.

So this would be equivalent to:

  scm_module_variable (scm_resolve_module (module_name), sym)

?

I’m skeptical about adding 8 convenience C functions “as we move more
and more to writing code in Scheme and not in C” ;-), but if that’s what
people really want, then I won’t object.

Thanks,
Ludo’.




  parent reply	other threads:[~2011-03-06 22:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06 11:24 proposal: scm_c_public_ref et al Andy Wingo
2011-03-06 16:24 ` Mark H Weaver
2011-03-06 17:10   ` Thien-Thi Nguyen
2011-03-06 21:34     ` Andy Wingo
2011-03-06 21:10   ` Andy Wingo
2011-03-06 22:22 ` Ludovic Courtès [this message]
2011-03-07 10:45   ` Andy Wingo

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=87zkp77uti.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    /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).