[Larceny-users] macros

Felix felixluser at pnkfx.org
Sat Sep 1 11:42:35 EDT 2007


On Sep 1, 2007, at 8:38 AM, William D Clinger wrote:

>> Is there a form to load only the macros from a file?
>
> No.

I hate to suggest this (because I'm not certain if this should be  
regarded as a bug or a feature), but. . .

You could just expand the file to import only its macros.

In Larceny expanding a define-syntax form mutates the syntax  
environment.

So something like this function might suffice:  (lambda (file) (for- 
each macro-expand (read-file file)))

-Felix




More information about the Larceny-users mailing list