Re: new slib and guile 1.6.7

2005-11-19 Thread Rob Browning
Greg Troxel <[EMAIL PROTECTED]> writes: > So a (ice-9 slib) that does > > (define-module (ice-9 slib)) > ([load guile.init]) > > would be fully adequate, and avoid the messy symlinking issue? Yes, I think that would probably work similarly. I wasn't actually proposing that we use a symlink, just

Re: new slib and guile 1.6.7

2005-11-09 Thread Greg Troxel
So a (ice-9 slib) that does (define-module (ice-9 slib)) ([load guile.init]) would be fully adequate, and avoid the messy symlinking issue? -- Greg Troxel <[EMAIL PROTECTED]> ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.or

Re: new slib and guile 1.6.7

2005-11-08 Thread Rob Browning
Greg Troxel <[EMAIL PROTECTED]> writes: > I don't have any, but note that we need to have > > (use-modules (ice-9 slib)) > > make adequate symbols visible in the using module. Given that > guile.init has code to use define-public most of the time, putting the > load insidde the module definition

Re: new slib and guile 1.6.7

2005-11-08 Thread Greg Troxel
Rob Browning <[EMAIL PROTECTED]> writes: > $ ./pre-inst-guile > guile> (load-from-path "slib/guile.init") > guile> (require 'new-catalog) > guile> (require 'fft) > guile> fft > # > guile> > > At least from this admittedly trivial test, ignoring ice-9/slib.scm > and using the slib g

Re: new slib and guile 1.6.7

2005-11-08 Thread Rob Browning
Greg Troxel <[EMAIL PROTECTED]> writes: > 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-vicinit

Re: new slib and guile 1.6.7

2005-11-06 Thread Rob Browning
Greg Troxel <[EMAIL PROTECTED]> writes: > (define-module (ice-9 slib) > :export (slib:load > implementation-vicinity > library-vicinity > home-vicinity > scheme-implementation-type > scheme-implementation-version > make-random-state >

Re: new slib and guile 1.6.7

2005-11-04 Thread Greg Troxel
Kevin Ryde <[EMAIL PROTECTED]> writes: > Greg Troxel <[EMAIL PROTECTED]> writes: > > > > You are right, but if you object to going from what we have to what I > > posted, I don't see your point. > > I was hoping the issue could be killed for good, ie. impervious to > anything guile.init might do

Re: new slib and guile 1.6.7

2005-11-02 Thread Kevin Ryde
Greg Troxel <[EMAIL PROTECTED]> writes: > > You are right, but if you object to going from what we have to what I > posted, I don't see your point. I was hoping the issue could be killed for good, ie. impervious to anything guile.init might do in the future :-). > slib needs to define the API tha

Re: new slib and guile 1.6.7

2005-11-02 Thread Greg Troxel
Kevin Ryde <[EMAIL PROTECTED]> writes: > Greg Troxel <[EMAIL PROTECTED]> writes: > > > > (define-module (ice-9 slib) > > :export (slib:load > >implementation-vicinity > >library-vicinity > >home-vicinity > >scheme-implementation-type > >scheme-implementati

Re: new slib and guile 1.6.7

2005-10-31 Thread Kevin Ryde
Greg Troxel <[EMAIL PROTECTED]> writes: > > (define-module (ice-9 slib) > :export (slib:load > implementation-vicinity > library-vicinity > home-vicinity > scheme-implementation-type > scheme-implementation-version I would worry very much that these a

Re: new slib and guile 1.6.7

2005-10-31 Thread Greg Troxel
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 co

Re: new slib and guile 1.6.7

2005-10-30 Thread Kevin Ryde
Greg Troxel <[EMAIL PROTECTED]> writes: > > If all modules inherit from guile-user, then that sounds right. But > this would expose slib's require machinery to all guile programs, even > those that haven't asked for it, and that's not good. I'm unsure if it would work any other way (ie. non-globa

Re: new slib and guile 1.6.7

2005-10-30 Thread Greg Troxel
Kevin Ryde <[EMAIL PROTECTED]> writes: > I wondered if perhaps ice-9 slib was supposed to be like a proper > module, giving an slib environment only in those application modules > using it, and not when not used, if you know what I mean. gnucash fails still, but it gets a lot further. I think yo

Re: new slib and guile 1.6.7

2005-10-29 Thread Kevin Ryde
Greg Troxel <[EMAIL PROTECTED]> writes: > > Whether there is something deeper with gnucash, I don't know, but I > have no reason to think so yet. I wondered if perhaps ice-9 slib was supposed to be like a proper module, giving an slib environment only in those application modules using it, and not

Re: new slib and guile 1.6.7

2005-10-29 Thread Greg Troxel
I put the following in ice-9/slib.scm, and while a bit gross, let me load stdio and use printf. This assumes that slib is a directory in pkgdatadir; pkgsrc systems install it in /usr/pkg/share/slib and then symlink it to /usr/pkg/share/guile/slib. ;; Load slib's init file directly, implicitly sym

Re: new slib and guile 1.6.7

2005-10-28 Thread Greg Troxel
Ah. Do we have someone from the gnucash world who can say what it should look like or how it should work? It's not that complicated. With the new slib, you get behavior like this: > guile guile> (use-modules (ice-9 slib)) guile> (require 'stdio) ERROR: Unbound variable: with-load-pathname A

Re: new slib and guile 1.6.7

2005-10-28 Thread Kevin Ryde
Greg Troxel <[EMAIL PROTECTED]> writes: > > I believe this should be fixed for 1.6.8; breaking slib breaks > gnucash. Ah. Do we have someone from the gnucash world who can say what it should look like or how it should work? ___ Guile-user mailing list

Re: new slib and guile 1.6.7

2005-10-28 Thread Greg Troxel
Do you have replacement content for ice-9 slib that works? Is it necessary to export symbols, or to define-module first so that all of guile.init's symbols are in the global namespace? With explicit loading of guile.init (and no ice-9 slib), and a UNIX/unix case fixup in guile.init, I am able to

Re: new slib and guile 1.6.7

2005-10-21 Thread Kevin Ryde
Alan Grover <[EMAIL PROTECTED]> writes: > > I have the same problem with 1.6.4 (no surprise) and slib3a2. > > First, Kevin Ryde once wrote me: >> Incidentally, the (ice-9 slib) module which comes with guile probably >> doesn't work with the latest slib, running up guile.init as described >> in the

Re: new slib and guile 1.6.7

2005-10-21 Thread Alan Grover
I have the same problem with 1.6.4 (no surprise) and slib3a2. First, Kevin Ryde once wrote me: > Incidentally, the (ice-9 slib) module which comes with guile probably > doesn't work with the latest slib, running up guile.init as described > in the slib docs is the way to go. I found that ice-9/sl

new slib and guile 1.6.7

2005-10-21 Thread Greg Troxel
I'm investigating why in NetBSD pkgsrc the update of slib to 3a2 breaks the guile-slib package, failing when it tries to build the catalog: cd /usr/pkg/share/guile/slib; guile -q -s /usr/pkgsrc/devel/guile-slib/files/ge ncat.scm ERROR: Unbound variable: with-load-pathname gencat.scm is provided