[plt-scheme] with-slots patch
On Sep 30, Momchil Velikov wrote:
> Momchil Velikov wrote:
> > (require (lib "swindle.ss" "swindle"))
> >
> > (defclass <foo> (<DEFANGED_object>) (x :initvalue 0))
> > (define a (make <foo>))
> > (with-slots a ((y x)) (display y))
> >
> > The above needs the following patch in order to work.
>
> Ok, I guess it was meant to be used like
>
> (with-slots a ((y 'x)) (display y)
>
> nevermind ...
Either that, or:
(with-slots a (x) (display x))
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!