[CM] *load-path* behavior

x.x. chai xxchai at kias.re.kr
Mon May 17 02:08:12 PDT 2021


Hi,

I use s7 repl compiled from repl.c

I noticed that in s7, when running `s7 foo.scm', the
variable `*load-path' contains only directory of foo.scm.
Yet, running `s7', the *load-path* also has the path of s7
binary as its `car'.

This checks with the lines

#ifdef S7_LOAD_PATH
      s7_add_to_load_path(sc, S7_LOAD_PATH);
#else
...

the repl.c file.


Is this difference on purpose?




More information about the Cmdist mailing list