> On Jan 29, 2016, at 5:12 PM, Jean-Michel HUFFLEN <[email protected]> wrote:
> 
> Jens Axel Søgaard <[email protected]> wrote:
> 
>> 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.
> 
>   OK, thanks. But a point is still obscure, for me. In R6RS, if the library 
> "mutable-pairs" is not used, lists are supposed to be immutable, aren't they? 
> So, they are immutable because we cannot use "set-car!" and "set-cdr!", 
> provided by this library, but they are not "immuable enough" for Racket's 
> graphical objects... Strange...

If set-car! and set-cdr! aren't required, that only means that that module 
can't mutate them. But if that list is passed into a function from another 
module, that function could mutate them, so they aren't immutable. 

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to