This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gak! slib


Dave Love <d.love@dl.ac.uk> writes:

> Per instructions `(load "math.scm") (math)' worked for me recently in
> SCM.  ISTR actually compiling Jacal with Scheme->C long ago so it
> can't be too obscure.

  (use-modules (ice-9 slib))

     or

  (define-module (my-module) :use-module (ice-9 slib))

     plus

  (slib:load "math")

works now.  (Please try next snapshot.)

Note however that the latest version of Jacal seems to have a minor
bug: You need to `(define horner #f)' before calling `math'.

> The problem with Guile is that the slib support is incomplete and/or
> broken, specifically WRT vicinities and procedure visibility.  I went
> through some of it but gave up.

I found one bug (causing (program-vicinity) to return "/" instead of
"").  Apart from this there were two unprovided features (delay and
defmacro) which probably were provided by earlier versions of slib.

Also, I exported slib:load so that jacal can be run in other modules
than the slib module.

Please send in bug-reports if other procedures should be exported from
the slib module.

> Other than running SCM, I suspect the thing to do is to make a normal
> slib init file as for other systems (see Template.scm in slib).

This is basically what ice-9/slib.scm is.  Someone should probably go
through it and compare with Template.scm, though.  It has basically
only been bugfixed since Tom Lord wrote it.

/mdj