[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: load-from-path and compile-file question
From: |
Ludovic Courtès |
Subject: |
Re: load-from-path and compile-file question |
Date: |
Sat, 12 Nov 2011 22:11:51 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Hi Ian,
Ian Hulin <address@hidden> skribis:
> (load-from-path) showed the expected module '(lily), (compile-file)
> showed an "anonymous" module with an internally generated name.
If you look at ‘compile’ in (system base compile), you’ll find that it
has an ‘env’ argument, which is the module where compilation takes
place (in the case of Scheme.)
The default value for that module can be found in (language scheme
spec): it’s a fresh module, as you noticed. The intent is to confine
side-effects that may happen at compile-time.
You can specify another module by just calling
(compile exp #:env my-module).
Thanks,
Ludo’.