Martin Gasbichler writes:
> >>>>> "WP" == Walter C Pelissero <walter@pelissero.org> writes:
>
> WP> The thing is further complicated by this undocumented behavior:
> WP> Process scheme finished
> WP> Scsh 0.5.3
> >> home-directory
> WP> "/usr/home/wcp"
> >> (set! home-directory "foo")
>
> WP> Warning: invalid assignment
> >> home-directory
>
> The behaviour results from the semantics of the module system: you try
> to modify an exported variable, which is forbidden. I don't know why
> Scheme 48 does not raise an exception here.
Yes, as I expected.
So, to summarize: home-directory is a constant and if HOME is not
defined at startup time all the string functions dealing with "~"
return wrong results. This can't be fixed because home-directory
can't be set.
To me it sounds as a change of the definition of home-directory is in
order (see my previous message).
--
walter pelissero
http://www.pelissero.org
|