scsh-users
[Top] [All Lists]

Re: How can I use the second argument to `load'?

To: Alan@lcs.mit.edu
Subject: Re: How can I use the second argument to `load'?
From: Richard Kelsey <kelsey@research.nj.nec.com>
Date: Mon, 22 Sep 1997 11:37:11 -0400
Cc: scheme48-bugs@martigny.ai.mit.edu, scsh-bugs@martigny.ai.mit.edu
   Date: Mon, 22 Sep 1997 02:17:02 -0400
   From: Alan Bawden <Alan@lcs.mit.edu>

   OK, I'm stumped.  Here's the story:

   [Synopsis: adding stuff to Scheme for some users]

Would it work to make your package the user package?
The command
   ,user-package-is <package>
changes the user package, which is the default package
for `load', among other things.

   I can almost get what I want by doing:

     (load "foo" (get-package 'user-layouts))

   Which is ugly enough given that `get-package' is this undocumented
   procedure that I have to access from a structure named
   `package-commands-internal'.  But it works.  Except if I dump my system out
   -- which I -really- need to do to make its startup time less than glacial
   -- then the call to `get-package' results in:

      Error: exception
             (record-ref #f 3)

I have been unable to reproduce this.  Dumping an image and
reloading it should have no effect on `get-package, and as far
as I can tell it doesn't.  Can you send me the code?

                                        -Richard

<Prev in Thread] Current Thread [Next in Thread>