[Openmcl-devel] Is there a way to suppress this warning?
ron at flownet.com
Thu Apr 30 13:45:38 PDT 2015
On Apr 30, 2015, at 1:42 PM, Stelian Ionescu <sionescu at cddr.org> wrote:
> On Thu, 2015-04-30 at 13:36 -0700, Ron Garret wrote:
>> Yes, but that’s not a good solution in my case. The use case is that I want to write a macro called MOD-P that wraps a numerical calculation so that all of the computations in the lexical scope of the macro are performed modulo-P, in other words, the real expansion looks something like:
>> (flet ((+ (&rest args) (mod (apply ‘+ args) p))
>> (- (&rest args) (mod (apply ‘- args) p))
>> But I also want calculations that are NOT wrapped in the MOD-P macro to continue to work normally.
The WHOLE POINT of FLET (and MACROLET) is so you don’t need a code walker to do this sort of thing.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the Openmcl-devel