Re: Suggestion: *load-pathname*

From: Erick Gallesio <>
Date: Thu, 03 Oct 1996 09:33:05 +0200

> Dorai Sitaram writes

> 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.

That would really be easy to implement since the current file (and its line
number) exists as a C variable in the interpreter. Another point for my TODO

                -- Erick
Received on Thu Oct 03 1996 - 09:35:38 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST