`load' is a macro (!) that resolves paths relative to source file dir
authorAndy Wingo <wingo@pobox.com>
Sat, 12 Feb 2011 22:50:56 +0000 (23:50 +0100)
committerAndy Wingo <wingo@pobox.com>
Sun, 13 Feb 2011 14:06:11 +0000 (15:06 +0100)
commitc50775e2460da0c9fa49817fe22896d0369184ac
treeb185ee350fd65e9bd56e40e2d14bedd93d14b23f
parent6c51a40ace32a1540ffe6623ede64ce639b821fa
`load' is a macro (!) that resolves paths relative to source file dir

* module/ice-9/boot-9.scm (load-in-vicinity): New helper, loads a file
  relative to a path.
  (load): Turn into a macro that captures the name of the source file
  being expanded, and dispatches to load-in-vicinity.  Referencing
  `load' by bare name returns a closure that embeds the current source
  file name.
module/ice-9/boot-9.scm