2016-01-28 21:48 GMT+01:00 jmhuffle <jmhuf...@femto-st.fr>:

>    Dear Racket friends,
>
>    I am surprised because the following code works in "lang racket", but
> not in R6RS: in this last case, I got a contract violation for the value
> associated with "alignment within the horizontal panel. Is there a way to
> include such a horizontal panel in a program using R6RS, please?
>


> (define hp (new horizontal-panel% (parent top-level) (alignment '(left
> top))))
>

In R6RS '(left top) will allocate a list consisting of mutable cons cells.
In Racket '(left top) will allocate a list of immutable cons cells.

Since the GUI is implemented in Racket it expects immutable cons cells.

The easiest solution is to switch from R6RS to Racket.
However if you want to stick with R6RS, import  list  from racket/list and
use that
to create an immutable list.

-- 
Jens Axel Søgaard

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to