[CM] Unbound variable?
Bill Schottstaedt
bil@ccrma.Stanford.EDU
Fri, 26 Apr 2002 04:23:54 -0700
> [18:00:17] Unbound variable: root/snd-5
> ...
> (root/snd-5 "examp.scm")
In Scheme, the first thing in a list like this is assumed to be
an expression that evaluates to a function. Scheme sees
"root/snd-5" and says "that looks like a variable, but I
can't find any such name", so it complains about an unbound
variable. You want either "load" or "load-from-path" as in:
(load "/root/snd-5/examp.scm")
or, you could define a function named root/snd-5:
(define (root/snd-5 file)
(load-from-path
(string-append "/root/snd-5/" file)))