GNU bug report logs - #59221
(file-exists? #f) raises an exception

Previous Next

Package: guile;

Reported by: Joshua Branson <jbranso <at> dismail.de>

Date: Sat, 12 Nov 2022 17:50:01 UTC

Severity: normal

Done: Joshua Branson <jbranso <at> dismail.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jean Abou Samra <jean <at> abou-samra.fr>
To: Joshua Branson <jbranso <at> dismail.de>
Cc: 59221 <at> debbugs.gnu.org
Subject: bug#59221: (file-exists? #f) raises an exception
Date: Sat, 12 Nov 2022 18:57:20 +0100

> Le 12 nov. 2022 à 18:50, Joshua Branson via Bug reports for GUILE, GNU's Ubiquitous Extension Language <bug-guile <at> gnu.org> a écrit :
> 
> 
> Hello you lovely guile people!
> 
> This bug is so simple the subject line says it all!
> 
> file-exists? is a predicate, but
> 
> #+BEGIN_SRC scheme
> (file-exists? #f)
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure stat: Wrong type argument in position 1 (expecting open file port): #f
> 
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> #+END_SRC
> 
> I will shortly tag this as "easy".  Can you lovely maintainers give me
> about a week to try to fix this myself?
> 
> Thanks,
> 
> Joshua
> avid fantany reader


What’s the problem here?

It is normal for predicates to be defined only on certain types. You will find the same with positive?, string-null? and the like.

Regards,
Jean







This bug report was last modified 2 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.