Next: stdlib records syntactic layer, Previous: stdlib records intro, Up: stdlib records [Index]
The fields of a record type are designated mutable or immutable. Correspondingly, a record type with no mutable field is called immutable, and all records of that type are immutable objects. All other record types are mutable, and so are their records.
Each call to a record constructor returns a new record with a fresh
location (scheme basic storage model). Consequently, for two
records obj1 and obj2, the return value of (eqv?
obj1 obj2)
, as well as the return value of (eq?
obj1 obj2)
, adheres to the following criteria
(baselib predicates):
eqv?
), eqv?
returns
#f
.
eqv?
returns #f
.
eqv?
returns #t
.
eqv?
returns #f
, then eqv?
returns #f
.