Re: Enhancement to the syntax system?

2012-07-04 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stefan, On 03-07-12 23:52, Stefan Israelsson Tampe wrote: > You do not need gensyms if you try to mimic or implement my > suggested #. . On the other hand when if you do this > > (define (f stx) #`(let ((x 1)) #,stx)) > > and use this with > > #

Re: Enhancement to the syntax system?

2012-07-04 Thread Stefan Israelsson Tampe
Funny, for guile I get, scheme@(guile-user)> (define (f x) #`(let ((x 1)) #,x)) scheme@(guile-user)> (define-syntax m (lambda (x) (syntax-case x () ((_) #`(let ((x 2)) #,(f #'x)) scheme@(guile-user)> (m) $1 = 1 I ported the racket matcher to guile and worked in that environment, so this illus

Re: scm_to_pointer vs scm->pointer

2012-07-04 Thread Andy Wingo
On Tue 03 Jul 2012 23:47, l...@gnu.org (Ludovic Courtès) writes: >> This should be fixed. Otherwise it's impossible to document in any >> sane fashion. >> >> Suggestion: change scm_to_pointer to SCM_POINTER_VALUE. WDYT? > > I’m happy with this change. Mark? > > (Back then, I was skeptical about