From: Graham S. <fo...@pa...> - 2002-09-05 20:56:50
|
Timothy Hickey wrote: > We could also automatically compile macro1.scm when the (load > "macro1.scm") expression is compiled in macro2.scm or we could just > scan through it and pull out the macro definitions..... I like this sort of approach better than an include statement because it means that as a user of a library, I don't have to remember which definitions are functions and which are macros. If macros and functions are handled differently, then a library provider would have to create two separate files so that the user could do: (include "mylib-macros.scm") (load "mylib.scm") Ideally, the macro definitions would be saved in the java file so that they would work even if the user was loading a compiled .class file, e.g. (mylib.load). This would guarantee that (load "mylib.scm") and (mylib.load) always had the same semantics. It would also allow JScheme libraries to be distributed as .class/.jar files. --g |