Hi freaks:
I'm using LUCID-Lisp and for the first time the "eval-hook-function".
But
interpreted Lisp behaves correctly (before each eval
the eval-hook-function is called),
after compiling the program the eval-hook-function is never called
(except for the (not compiled) top-level function call)
My question is: can eval-hook-functions be used in compiled programs?
If YES: how to do it.
If NO : Why not?
Thank's for all answers in advance
Werner
Werner Stein (·····@dfki.uni-kl.de)
In article <······················@rhrk.uni-kl.de> ·····@arctecserv-2.dfki.uni-kl.de (Werner Stein) writes:
> after compiling the program the eval-hook-function is never called
> (except for the (not compiled) top-level function call)
The eval-hook function is only called when the interpreter is invoked to
execute a form. In general, compiled code doesn't go through the
interpreter, since the compiler usually translates the forms into code that
executes it directly. So you'll only invoke the eval-hook function when
you explicitly call EVAL, use the read-eval-print loop, or execute an
interpreted function by applying a lambda expression or an uncompiled
function.
--
Barry Margolin
System Manager, Thinking Machines Corp.
······@think.com {uunet,harvard}!think!barmar