Re: SLIB support

2007-09-15 Thread Rob Browning
Andreas Rottmann <[EMAIL PROTECTED]> writes: > I've now prepared a patch (attached) that's hopefully good enough > for upstream use. > +(define-module (ice-9 slib) > + :export (slib:load slib:load-source defmacro:load > +implementation-vicinity library-vicinity home-vicinity > +s

Re: SLIB support

2007-09-15 Thread Rob Browning
[EMAIL PROTECTED] (Ludovic Courtès) writes: > Hi, > > Andreas Rottmann <[EMAIL PROTECTED]> writes: > >> The latter. I agree that doing this in the Debian diff is >> cleaner/preferable. > > So `(load-from-path "guile.init")' (rather than "slib/guile.init") is OK > for everyone? I would say somethi

Re: SLIB support

2007-09-15 Thread Greg Troxel
[EMAIL PROTECTED] (Ludovic Courtès) writes: > What you're saying seems to be specific to pkgsrc. > > Leaving packaging systems aside, instructions in the Guile manual read > this: > > 1. Unpack slib somewhere, e.g., `/usr/local/share/slib'. > > 2. Create a symlink in the Guile site directory t

Re: asserting the equality of double values

2007-09-15 Thread Nelson H. F. Beebe
Kamaraju S Kusumanchi asks today: >> ... >> x = ldexp (1.0, DBL_MANT_DIG) - 1.0; >> assert (x == floor (x)); /* should be an integer already */ >> >> here ldexp and floor both return double values. Is it guaranteed that >> asserting the equality of two double values will always wo

asserting the equality of double values

2007-09-15 Thread Kamaraju S Kusumanchi
I was browsing the source code of guile 1.8.2 and have couple of trivial questions. I would be very grateful if you can answer the following questions. 1) In test-suite/standalone/test-round.c (lines 90-96) we have /* 2^DBL_MANT_DIG-1 In the past scm_c_round had incorrectly increm

Re: SLIB support

2007-09-15 Thread Ludovic Courtès
Hi, Greg Troxel <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Ludovic Courtès) writes: > >> So `(load-from-path "guile.init")' (rather than "slib/guile.init") is OK >> for everyone? > > No, on pkgsrc(NetBSD), which isn't trying to change paths, you need > slib/guile.init. What you're saying s

Re: SLIB support

2007-09-15 Thread Greg Troxel
[EMAIL PROTECTED] (Ludovic Courtès) writes: > So `(load-from-path "guile.init")' (rather than "slib/guile.init") is OK > for everyone? No, on pkgsrc(NetBSD), which isn't trying to change paths, you need slib/guile.init. Real data follows because it's too hard to say unambigiously "the slib dir i

Re: SLIB support

2007-09-15 Thread Ludovic Courtès
Hi, Andreas Rottmann <[EMAIL PROTECTED]> writes: > The latter. I agree that doing this in the Debian diff is > cleaner/preferable. So `(load-from-path "guile.init")' (rather than "slib/guile.init") is OK for everyone? On Debian, this needs to be changed to `(load "/usr/share/slib/init/guile.ini