[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string is read-only
From: |
Damien Mattei |
Subject: |
Re: string is read-only |
Date: |
Wed, 3 Aug 2022 13:34:49 +0200 |
On Wed, Aug 3, 2022 at 12:59 PM Maxime Devos <maximedevos@telenet.be> wrote:
>
> (My unverified hypothesis on why you aren't seeing an error here.)
>
>
> it would be a big change and very strange :-O if the few lines of code
below in scheme returned an error on lists:
but no restrictions with lists in Guile:
scheme@(guile-user)> (define lst '(1 2 3))
scheme@(guile-user)> (set-car! lst 7)
scheme@(guile-user)> lst
(7 2 3)
i wanted to add this link to my previous post:
https://icem.folkwang-uni.de/~finnendahl/cm_kurse/doc/schintro/schintro_38.html
it is interesting ,at the end of page it says too that modifying quoted
litteral should create an error :-O
Regards,
Damien
Re: string is read-only, Taylan Kammer, 2022/08/03