|
From: | John Cowan |
Subject: | Re: [Chicken-users] define-macro in Chicken 4.0 |
Date: | Fri, 13 Mar 2009 16:15:34 -0400 |
User-agent: | Mutt/1.5.13 (2006-08-11) |
Eduardo Cavazos scripsit: > Is there a way to define 'define-macro' in terms of the new explicit > renaming macros of Chicken 4.0? Or is it offered somewhere and I just > missed it? Quick and dirty approach: For (define-macro name (lambda exp body ...)) read (define-syntax name (lambda (exp junk-1 junk-2) body ...)) You'll have to destructure exp yourself. -- It was dreary and wearisome. Cold clammy winter still held way in this forsaken country. The only green was the scum of livid weed on the dark greasy surfaces of the sullen waters. Dead grasses and rotting reeds loomed up in the mists like ragged shadows of long-forgotten summers. --"The Passage of the Marshes" http://www.ccil.org/~cowan
[Prev in Thread] | Current Thread | [Next in Thread] |