unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Greg Troxel <gdt@ir.bbn.com>
Cc: guile-user@gnu.org
Subject: Re: new slib and guile 1.6.7
Date: 31 Oct 2005 17:42:56 -0500	[thread overview]
Message-ID: <rmir7a1l34f.fsf@fnord.ir.bbn.com> (raw)
In-Reply-To: <87k6fuzhe4.fsf@zip.com.au>

I got it to work, and it is non-global.  As I see it, the ice-9 slib
module has a bunch of definitions, and programs that want to use them,
including require, have to use-module it.  This is how it always
worked.  I ended up doing it the same way, except using guile.init
instead of the homegrown copy, but still exporting.

Here's the code snippet from ice-9/slib.scm, with use of load that
respects the prefix (NetBSD/pkgsrc puts things in /usr/pkg, not /usr).

(define-module (ice-9 slib)
  :export (slib:load
	   implementation-vicinity
	   library-vicinity
	   home-vicinity
	   scheme-implementation-type
	   scheme-implementation-version
	   make-random-state
	   <? <=? =? >? >=?
	   require)
  :no-backtrace)

;; Load slib's init routine.
(load (string-append (assoc-ref %guile-build-info 'pkgdatadir)
		     "/slib/guile.init"))





-- 
        Greg Troxel <gdt@ir.bbn.com>


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2005-10-31 22:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-21 18:54 new slib and guile 1.6.7 Greg Troxel
2005-10-21 20:06 ` Alan Grover
2005-10-21 21:40   ` Kevin Ryde
2005-10-28 13:33   ` Greg Troxel
2005-10-28 22:47     ` Kevin Ryde
2005-10-28 23:40       ` Greg Troxel
2005-10-29 19:52         ` Greg Troxel
2005-10-30  0:48         ` Kevin Ryde
2005-10-30 14:35           ` Greg Troxel
2005-10-30 23:58             ` Kevin Ryde
2005-10-31 22:42               ` Greg Troxel [this message]
2005-10-31 23:52                 ` Kevin Ryde
2005-11-02 15:30                   ` Greg Troxel
2005-11-02 20:16                     ` Kevin Ryde
2005-11-04 15:46                       ` Greg Troxel
2005-11-06 18:08                 ` Rob Browning
2005-11-08  7:38                 ` Rob Browning
2005-11-08 18:01                   ` Greg Troxel
2005-11-08 19:43                     ` Rob Browning
2005-11-09 14:56                       ` Greg Troxel
2005-11-20  2:29                         ` Rob Browning

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=rmir7a1l34f.fsf@fnord.ir.bbn.com \
    --to=gdt@ir.bbn.com \
    --cc=guile-user@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).