[plt-scheme] immutable vector and box literals
Second.
On Jan 29, 2008, at 4:12 PM, Robby Findler wrote:
> Should we just get rid of literal boxes all together now?
>
> Robby
>
> On Jan 29, 2008 12:40 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>> As of 3.99.0.10, vector and box literals are immutable:
>>
>>> (vector-set! '#(1 2 3) 0 0)
>> vector-set!: expects type <mutable vector> as 1st argument....
>>
>> Along the same lines, `syntax->datum' produces immutable vectors and
>> boxes instead of mutable ones.
>>
>> I doubt that this change will be controversial, but it may be
>> interesting to check whether anyone is using mutable literals as a
>> back
>> door to share across instantiations of a module.
>>
>> Matthew
>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme