[plt-scheme] Never mind MrEd designer broken

From: Nicholas Chubrich (chubrich at cs.brandeis.edu)
Date: Wed Aug 2 18:45:39 EDT 2006

Matthew---
        My bad, I realized that when I switched to v350 I had forgotten to
select the Graphical language level.  Once I do that it works fine.  The  
error message couldn't tell me that, but there's no reason to expect it   
could.

Thanks for wasting your time...

Nick Chubrich.


On Wed, 2 Aug 2006, Matthew Flatt wrote:

> At Wed, 2 Aug 2006 14:15:42 -0400 (EDT), Nicholas Chubrich wrote:
> > The following code in MrEd designer raises an error in v350:
> > 
> > (define about-canvas%
> >   (class canvas%
> >     (define k-black (make-object color% 0 0 0))
> > ; this raises the error: define: not allowed in an expression context.
> >     (define k-underline-brush (make-object brush% (make-object color% 0 0 
> > 255) 'solid))
> >  .......
> > 
> > 
> > There was never a problem in previous versions, and I don't see anything 
> > relevant in the release notes; what is going on?
> 
> I think I need more context. I tried evaluating
> 
>   (define about-canvas%
>     (class canvas%
>       (define k-black (make-object color% 0 0 0))
>       (define k-underline-brush (make-object brush% (make-object color% 0 0 
>                                                       255) 'solid)))))
> 
> in MrEd, or the same thing with the wrapper
> 
>  (module m mzscheme
>    (require (lib "class.s")
>             (lib "mred.ss" "mred"))
>    ...)
> 
> and there was no syntax error in either case.
> 
> Matthew
> 
> 


Posted on the users mailing list.