|
From: | Maxime Devos |
Subject: | Re: defining macros within eval |
Date: | Sun, 16 Oct 2022 18:21:30 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 |
On 16-10-2022 16:07, Jean Abou Samra wrote:
Is there some way to make this work? In my real code, the expression is read from a file, where it might be a macro definition or anything else, and it's evaluated in a different module from the current one.You cannot byte-compile code in advance if it uses macros that are only known dynamically. [...]
Possibly in Paul Jarc's case, while they the macros might be computed, they might also be the same between runs of "guile -l do-something.scm".
If that's the case (i.e., the expression read from the file remains unchanged), byte compiling is possible, just use eval-when, see my reply.
Greetings, Maxime.
OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |