[plt-scheme] unbound variable
On Jan 6, Larry White wrote:
> module statement I got the error:
>
> "expand: unbound variable in module in: :accessor"
>
> The code looks like this:
>
> (module validation mzscheme
> (require "collects/swindle/clos.ss")
>
> (defclass <validation-error> ()
> (message :accessor msg :initarg :msg :initvalue "")
> (param :accessor param :initvalue "" :initarg :param)
> (value :accessor value :initvalue "" :initarg :value) )
> ...etc....
> )
>
> I'm using the full swindle language option.
Swindle redefines lots of things. If you look at the documentation
you will see that "clos.ss" is described as a language module, which
means that you should use it like this:
(module validation "collects/swindle/clos.ss"
...)
And btw, it would be even better to use:
(module validation (lib "clos.ss" "swindle")
...)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!