racket/collects/lang/private/teach-shared.rkt
Matthew Flatt 655f6045a2 fix shared' for #:auto' fields and constructors without `make-'
Closes PR 11588
 Closes PR 11591
2011-01-05 13:52:11 -07:00

21 lines
515 B
Racket

#lang scheme/base
(require syntax/stx
syntax/kerncase
syntax/struct
racket/struct-info
scheme/include)
(provide shared/proc)
(require (for-template
scheme/base
(only-in "teachprims.ss" [advanced-cons the-cons])))
(define shared/proc
(lambda (stx make-check-cdr undefined-expr)
(with-syntax ([undefined undefined-expr])
;; Include the implementation.
;; See private/shared-body.ss.
(include (lib "mzlib/private/shared-body.ss")))))