[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ignore errors while evaluating with `primitive-eval'
From: |
Alexandru Cojocaru |
Subject: |
Ignore errors while evaluating with `primitive-eval' |
Date: |
Mon, 19 Aug 2013 17:11:57 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
Hi guys,
is it possible to ignore errors when evaluating a badly formed expression?
Take as an example this:
(let ((cs (string->list "display")))
(let l ((cs (cdr cs)) (s (car cs)))
(primitive-eval `(begin
(,(list->symbol s) "aha")
(newline)))
(if (not (null? cs))
(l cs s))))
I would like to ignore all the errors while evaluating `(d "aha")', `(di
"aha")', `(dis "aha")' etc.
and evaluate only `(display "aha")'.
What I want is to construct some (possibly incorrect) expressions on the
fly and evaluate them.
Best regards,
Alexandru Cojocaru
- Ignore errors while evaluating with `primitive-eval',
Alexandru Cojocaru <=