Hi,

Stefan Israelsson Tampe <stefan.ita...@gmail.com> skribis:

> If I put,
>
> (define a #(1))
> (define b #(1))
>
> , load the file. Then
>
>> (eq? a b)
> #t

The R5RS reads (info "(r5rs) Equivalence predicates"):

     Since it is an error to modify constant objects (those returned by
     literal expressions), implementations are permitted, though not
     required, to share structure between constants where appropriate.

And then, these examples:

     (eq? '(a) '(a))                        ==>  _unspecified_
     (eq? "a" "a")                          ==>  _unspecified_
     (eq? "" "")                            ==>  _unspecified_

So no problem here, AFAICS.

Ludo’.


Reply via email to