[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] .csirc - recover from attempt to (use) a non-existan
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] .csirc - recover from attempt to (use) a non-existant egg |
Date: |
Fri, 14 Mar 2014 22:04:56 +0100 |
User-agent: |
Mutt/1.4.2.3i |
On Fri, Mar 14, 2014 at 03:01:31PM -0600, Erik Falor wrote:
> I suppose this is because (require ...) happens at runtime and
> whatever (import ...) does happens when the syntax is expanded.
>
> Is there a clean way to achieve the effect of reporting a missing egg
> with an error message (and leaving my interpreter otherwise usable)?
Have you tried EVALing it, and wrapping the eval in an exception handler?
Cheers,
Peter
--
http://www.more-magic.net