file-exists? doesn't cause a throw, simpler try-module-autoload
authorAndy Wingo <wingo@pobox.com>
Tue, 2 Jun 2009 20:39:30 +0000 (22:39 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 3 Jun 2009 20:20:55 +0000 (22:20 +0200)
commit727c259ac5c9a5415a0dac2ddbbc74193906caeb
tree3dc80c5659288c554b55631570214bcbb7a57e0e
parentd1e47c6e6c9698cd8623d370db0056176aa42bd9
file-exists? doesn't cause a throw, simpler try-module-autoload

* module/ice-9/boot-9.scm (file-exists?): Change to use the stat
  interface that doesn't throw exceptions.
  (try-module-autoload): Simplify to take advantage of the fact that
  primitive-load-path does the right thing with regards to loading
  compiled files if they are available.
module/ice-9/boot-9.scm