[plt-scheme] dynamic require

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Jun 6 20:27:47 EDT 2005

On Jun  7, Hans Oesterholt-Dijkema wrote:
> With mzscheme 299.100, I get an error when I pass an absolute path to 
> dynamic-require.
> This is why I'm rewriting the path to a relative one. :-(.
> See below:
> [...]
>  > (dynamic-require "d:/build/log/log4scm.scm" 'log-debug)
>  > standard-module-name-resolver: expects argument of type <module path 
> (relative string form must contain only a-z, A-Z, 0-9, -, _, ., /, and 
> space, with no leading or trailing /)>; given "d:/build/log/log4scm.scm"

Mathew was talking about a path value, not a string that names a
path...  Try this:

  (dynamic-require (string->path "d:/build/log/log4scm.scm") 'log-debug)

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

Posted on the users mailing list.