[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessor visibility

This page is part of the web mail archives of SRFI 76 from before July 7th, 2015. The new archives for SRFI 76 contain all messages, not just those from before July 7th, 2015.

Just a small question:  Are the accessors visible in the protocol <exp>?

Here is an example that would use this to copy a record.

(define-record-type point

    (lambda (new)
        ((x y)       (new x y))                     ; Create new
        ((old-point) (new (point-x old-point)       ; Copy existing
                          (point-y old-point)))))

  (fields (immutable x)
          (immutable y)))