[Ecls-list] "Silent" ECL
Christian Svensson
info at cmd.nu
Sun Sep 14 14:25:13 UTC 2008
Hello,
Yes, I've looked at that page before.
You'll have to excuse me, I'm not very experienced with LISP programming yet
but I know
my way around the general language.
I'm having problems seeing how using a let-statement inside the LISP file
would set
the debugger-hook for cl_load to use.
Earlier in this thread I was told that cl_* is the same as the commands in
LISP.
Therefor I test this both in "ecl" and using si_safe_eval:
(let ((*debugger-hook* nil)) (load "test.lisp"))
I get thrown to the top-level anyway.
I've also tried with:
*test-debug.lisp*
(defun test-debug( c m )
(print c))
*main.c*
...
cl_load( 1, "test-debug.lisp" );
..
si_safe_eval( 3, "(let ((*debugger-hook* #'test-debug)) (load
\"test.lisp\"))", Cnil, OBJNULL );
..
where *test.lisp *is riddled with syntax errors - it should fail to load,
which it does
but it throws me to top-level anyway. I does however execute (print c).
Am I missing some kind of function call inside my debug function to stop the
evaluation
or anything of the kind?
Thanks in advance and for your patience.
On Sun, Sep 14, 2008 at 2:35 PM, Erik Huelsmann <ehuels at gmail.com> wrote:
> On Sun, Sep 14, 2008 at 2:02 PM, Christian Svensson <info at cmd.nu> wrote:
> > Hello.
> >
> > Ah, I see.
> > How would one proceed to set *debugger-hook* to a user specified function
> > globally to catch errors in cl_load?
> >
> > I've tried with si_safe_eval( 3, c_string_to_object( "(setq
> *debugger-hook*
> > nil)", Cnil, OBJNULL ) but that makes no change
> > - is NIL a valid value? Do I need to specify an environment for it to
> work?
> > Is the setq function correct?
> >
>
> Google: clhs *debugger-hook* -->
> http://www.lispworks.com/documentation/HyperSpec/Body/v_debugg.htm
>
> Read all about it on the web. As Juan pointed out: you need to learn
> Common Lisp if you want to do this.
>
> Bye,
>
> Erik.
>
--
Christian Svensson
Command Systems
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20080914/7fde6549/attachment.html>
More information about the ecl-devel
mailing list