unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Julian Graham <joolean@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: r6rs libraries, round three
Date: Sun, 25 Oct 2009 23:53:40 -0400	[thread overview]
Message-ID: <2bc5f8210910252053o31424493re2648f133bf7691f@mail.gmail.com> (raw)
In-Reply-To: <m3hbtnm8ud.fsf@pobox.com>

Hi Andy,

> It should work now, though with hacks -- if you manipulate the
> module-public-interface directly. But perhaps some more baked in support
> would be useful.

Oh, certainly -- as I've learned over these many months, you can do
some very interesting things by working with the lower-level module
API.  And indeed, that was how I did things in my initial
implementation back in March.  But...


> Can you explain a use case a bit more? I think having trouble grasping
> why you would want to do this :)

I'm trying to write a macro to convert `library' forms into
`define-module' forms.  All of the contortions you can put your
imported symbols through in R6RS can be flattened into a form that
maps quite neatly onto define-module's #:select, but #:export and
#:reexport aren't as flexible.  Specifically, the use case is
implementing the

  (rename (<identifier1> <identifier2>) ...)

form for R6RS library export-specs.  Like you said, you can manipulate
the public interface directly -- I could, say, insert the code to do
this as part of transforming the library body -- but it would be nice
if I could leave the management of the interface entirely up to
`define-module'.


Regards,
Julian




  reply	other threads:[~2009-10-26  3:53 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-26 20:10 r6rs libraries, round three Julian Graham
2009-10-01  4:32 ` Julian Graham
2009-10-24 19:10   ` Julian Graham
2009-10-25 22:01     ` Andy Wingo
2009-10-26  3:53       ` Julian Graham [this message]
2009-11-01 19:26         ` Julian Graham
2009-11-16 20:47           ` Julian Graham
2009-11-17 19:56           ` Andy Wingo
2009-11-17 20:55             ` Julian Graham
2009-11-18  1:33               ` Andreas Rottmann
2009-11-18  6:40                 ` Julian Graham
2009-12-13  3:24                   ` Julian Graham
2009-12-22  0:10                     ` Andy Wingo
2009-12-23 15:35                       ` Julian Graham
2009-12-23 16:10                         ` Neil Jerram
2009-12-28 22:42                           ` Ludovic Courtès
2009-12-24 13:25                         ` Andy Wingo
2009-12-27 20:04                           ` Julian Graham
2009-11-18  1:18             ` Andreas Rottmann

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=2bc5f8210910252053o31424493re2648f133bf7691f@mail.gmail.com \
    --to=joolean@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.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).