[plt-scheme] with-slots patch

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Sep 29 16:45:43 EDT 2004

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!


Posted on the users mailing list.