t-records.scm 262 B

123456789101112131415
  1. ;;; SRFI-9 Records.
  2. ;;;
  3. (use-modules (srfi srfi-9))
  4. (define-record-type <stuff>
  5. (%make-stuff chbouib)
  6. stuff?
  7. (chbouib stuff:chbouib stuff:set-chbouib!))
  8. (and (stuff? (%make-stuff 12))
  9. (= 7 (stuff:chbouib (%make-stuff 7)))
  10. (not (stuff? 12)))