[EMAIL PROTECTED] (Ludovic Courtès) writes: > Hi, > > Neil Jerram <[EMAIL PROTECTED]> writes: > >> What seems very reasonable, however, would be a way for a module to >> discover whether it is being loaded for use-syntax or use-module, so >> that it can emit a warning, or even signal an error, if the use is >> inappropriate. >> > > I'm not sure extending `define-module' just to solve this specific > problem is a good idea. In particular, `use-syntax' itself doesn't seem > too reasonable (see [0]). Thus, in the long-term, it may be preferable > to remove `use-syntax' or replace it with more robust primitives, rather > than working around it.
I suspect that the sole purpose of use-syntax was to allow the use of syntax-case macros instead of the non-standard lisp style macros that are the default. I don't think it was ever intended to be generally useful. Long term, Guile should probably have syntax-case macros available without having to resort to use-syntax. -Dale -- Dale P. Smith _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user