scsh-users
[Top] [All Lists]

Re: home-directory

To: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Subject: Re: home-directory
From: "Walter C. Pelissero" <walter@pelissero.org>
Date: Fri, 4 Jan 2002 18:57:20 +0000
Cc: walter@pelissero.org (Walter C. Pelissero), scsh-news@zurich.ai.mit.edu
Reply-to: walter@pelissero.org
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

<Prev in Thread] Current Thread [Next in Thread>