gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: eval-when 'defaults'


From: Paul F. Dietz
Subject: [Gcl-devel] Re: eval-when 'defaults'
Date: Thu, 08 Jul 2004 06:26:03 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514

Camm Maguire wrote:
Greetings, and thanks!

Then it would appear the following lisp code is broken, and that a
conforming compiler is not obliged to compile set-up-cursor to code
that reflects the macro expansion of f-.  Right?

Yes.  You could make DEF-OP wrap the SETF form in an EVAL-WHEN,
but there's another problem: DEFUN, unlike DEFMACRO, is not required to have any
compile-time side effects, so the function it defines may not be
available for compile time computation in some conforming implementations.
(See the pages for DEFUN and DEFMACRO.)

I generally put macros definitions and their associated auxiliary
functions (that are used at macro expansion time) in a file that
is distinct from the files where the macros are actually used.
(The one exception would be if the macros don't use auxiliary functions.)

        Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]