Suggestion: *load-pathname*
I think it would be useful to have a global variable called
*load-pathname* (as in Common Lisp or SCM) that is fluidly
set to the name of the currently loading file. (When no
file is loading, it could be "" or #f.)
It is easy to implement, doesn't take a efficiency hit, and
is amazingly handy when you distribute a multiple-file
Scheme package where the code in any file can exploit
knowing where it sits to figure out the relative pathnames
of the other files, without needing to bother the user.
--d
Received on Fri Sep 27 1996 - 18:55:17 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST