[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] Do record type NAMEs shadow somhow?
- To: scheme-reports@x
- Subject: [Scheme-reports] Do record type NAMEs shadow somhow?
- From: Andre van Tonder <andre@x>
- Date: Sun, 24 Apr 2011 22:24:03 -0400 (EDT)
In the following sequence:
(define-record-type <pare>
(kons x y)
pare?
(x kar set-kar!)
(y kdr))
(define-record-type <pare>
(cons x y)
pair?
(x car set-car!)
(y cdr))
(kar (kons 1 2)) ;; WILL THIS STILL WORK?
In other words, will the second definition of <pare> (with different accessors)
in the same scope mess up the first record type definition?
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports