[gambit-list] Meroon and syntax-case?

Phil Dawes pdawes at users.sf.net
Thu Mar 22 04:11:22 EDT 2007


Hi Gambit List,

I really like the meroonet object system, however my program contains
quite a few syntax-case macros and the meroonet common-lisp style macros
don't work once syntax-case is loaded.

I've found that I can switch between the two macro systems using:

(define (switch-to-lisp-macros)
   (set! ##expand-source
         (lambda (src)
           src)))

(define (switch-to-syntax-rules-macros)
   (set! ##expand-source
         (lambda (src)
           (sc-expand src))))

... however this is both a hassle and a global change which I'm guessing
prob won't work with threading etc..

Has anybody attempted to build a meroon style system using syntax-case
macros? Any pointers would be much appreciated.

Many thanks,

Phil





More information about the Gambit-list mailing list