On May 23, 2009, at 3:37 PM, Eduardo Cavazos wrote:

So I can do:

(define rgba-red-change!
  (field-changer (record-type-descriptor rgba) 'red))

I think that's more or less the way to go about this. But if anyone has any suggestions, they're welcome.


You can write

(define-record-type+changers rgba
    (fields (mutable red)
            (mutable green)
            (mutable blue)
            (mutable alpha)))

which translates to a define-record-type followed by your set of additional definitions.

Aziz,,,

Reply via email to