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: macro syntax

2005-11-02 Thread Aurelien Chanudet
Hi,   And thanks for your attention.   I'd like something in the following flavor :  (define alist (list (cons "f" 1) (cons "g" 2)))   (defmacro-public new-func (f str) some code here to retrieve x from the alist given str `(define (,f) ,x))(new-func f "f") (new-func g "g")  On 11/2/05, Ludovic Cou

Re: macro syntax

2005-11-02 Thread Ludovic Courtès
Hi, Aurelien Chanudet <[EMAIL PROTECTED]> writes: > (define (find-x f) (cdr (assoc f alist))) You might want to use `assoc-ref' instead of `find-x'. > How can I rewrite the macro new-func to factor out find-x in the macro > definition ? I don't clearly understand what you mean. Could you reph

Re: Modified load-path proposal

2005-11-02 Thread Ludovic Courtès
Hi, Neil Jerram <[EMAIL PROTECTED]> writes: > Sorry to have been carrying on this discussion for so long, and for > changing direction a couple of times. If anyone is still reading, I'd > appreciate hearing your thoughts (again). Just a quick note to say: 0. I'm still reading. ;-) 1. Your `i