larcenists / larceny

Larceny Scheme implementation
Other
202 stars 32 forks source link

SRFI-99 immutable record fields are mutable #739

Closed TaylanUB closed 8 years ago

TaylanUB commented 9 years ago

Steps to reproduce:

It will work fine, where it should throw an exception.

WillClinger commented 8 years ago
(import (srfi :99))

(define-record-type foo
  (make-foo x)
  foo?
  (x foo.x))

(define foo.x! (rtd-mutator foo 'x))

(define f (make-foo 13))
(foo.x! f 59)
WillClinger commented 8 years ago

Fixed by changeset 86989e6c53fe83ad9e941706c48c3458a6061ddb