guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with catching reader error


From: Mike Gran
Subject: Re: Need help with catching reader error
Date: Wed, 22 Apr 2009 08:40:17 -0700

On Wed, 2009-04-22 at 16:53 +0200, Andreas Rottmann wrote:
> Mike Gran <address@hidden> writes:
> > (with-test-prefix "basic char handling"
> >  (pass-if-exception "non-existent named character" 
> >                 exception:read-error
> >                 #\foobar))
> >
> You have a syntax error in your source script, which will hence not be
> able to be read and consequently not be able to be evaluated.
> 
> Use this instead of #\foobar in the source text:
> 
> (with-input-from-string "#\\foobar" read)
> 
> This way, your source has legal syntax.

> --Rotty

Nice.  It works great.  Thanks.

-Mike Gran





reply via email to

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