hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

file-readable? and friends should raise &i/o-file-does-not-exist #257

Open hyln9 opened 10 years ago

hyln9 commented 10 years ago

The current behavior:

Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1829, build 2009-07-28) Copyright (c) 2006-2009 Abdulaziz Ghuloum

(file-readable? "/not/there") Exception trapped by debugger. Condition components:

  1. &error
  2. &who: file-readable?
  3. &message: "ENOENT: No such file or directory"
  4. &i/o-filename: "/not/there"

I think it would be better to raise &i/o-file-does-not-exist-error', instead of its supertype&i/o-filename', as it would convey more (machine-understandable) information to the caller.

Launchpad Details: #LP405944 Andreas Rottmann - 2009-07-28 14:13:49 -0400

hyln9 commented 10 years ago

The attached patch should fix this for all procedures from ikarus.posix.ss.

Launchpad Details: #LPC Andreas Rottmann - 2010-03-19 08:37:08 -0400