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

macro syntax

2005-10-29 Thread Aurelien Chanudet
Hi all, Please consider the following lines of code : (defmacro-public new-func (f x) `(define (,f) ,x)) (define alist (list (cons "f" 1) (cons "g" 2))) (define (find-x f) (cdr (assoc f alist))) (new-func f (find-x "f")) (new-func g (find-x "g")) How can I rewrite the macro new-func to factor

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: Socket API improvement, patch #6

2005-10-29 Thread Marius Vollmer
Kevin Ryde <[EMAIL PROTECTED]> writes: > Beaut, I gave it a bit of a tweak and applied it. Thanks! -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/list