[plt-scheme] dynamic require

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Jun 6 13:38:13 EDT 2005

On Jun  5, Hans Oesterholt-Dijkema wrote:
> > If I understand your complaint correctly, you're expecting 
> > module-paths to have a platform-specific separator character, though 
> > in MzScheme they don't. As I understand it, this 
> > platform-insensitivity is key in making it possible to write 
> > cross-platform code.
> Nice, however, I didn't give the whole picture. Using 'build-path',
> mzscheme itself returns a path with backslashes on windows. With
> this returned path of mzscheme I tried to do a dynamic-require. I
> solved my problem as follows:
> [...]

IIRC, the point is that relative paths in `require' have the same
status as URLs do, since they provide a similar kind of portability.
So instead of replacing backslashes with slashes, you're better of not
using build-path at all.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.