Eric Blossom | 17 Jan 2005 23:07

Re: compile-file apparently returning wrong value for error-p

On Mon, Jan 17, 2005 at 07:47:35PM +0000, Christophe Rhodes wrote:
> [ delayed response... ]
> 
> Eric Blossom <eb <at> comsec.com> writes:
> 
> > It appears that compile-file is incorrectly returning a value of T for
> > error-p even though the output diagnostics indicate that the
> > compilation produced only a warning.  [I'd also like to know how to
> > get rid of the warning...]
> 
> The correct value for errorp given a full warning /is/ T, I'm afraid.
> 

Thanks.

> I'm not intimately familiar with cl-ppcre, but what I think is
> happening is that register-groups-bind is binding CH to something like
> (if match (something with match) nil), and SBCL is warning you about
> the failure branch, which will cause a type mismatch if it's ever
> executed.  To quieten the system, probably a (check-type ch string) in
> the body will work.
> 
> Cheers,
> 
> Christophe

Thanks for the clarification and suggestions.

Eric

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

Gmane