chicken-users
[Top][All Lists]
Advanced

[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: Erik Falor
Subject: Re: [Chicken-users] .csirc - recover from attempt to (use) a non-existant egg
Date: Fri, 14 Mar 2014 15:32:30 -0600
User-agent: Mutt/1.5.22 (2013-10-16)

On Fri, Mar 14, 2014 at 10:04:56PM +0100, Peter Bex wrote:
> 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?

No, I hadn't tried that.  But it worked beautifully!

Thanks for saving my afternoon!

-- 
Erik Falor
Registered Linux User #445632                  http://linuxcounter.net

Attachment: pgpwyuHmVzLTJ.pgp
Description: PGP signature


reply via email to

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