SRFI-9: Set the `record-constructor' slot of the RTD.
authorLudovic Courtès <ludo@gnu.org>
Mon, 9 Apr 2012 22:17:39 +0000 (00:17 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 9 Apr 2012 22:17:39 +0000 (00:17 +0200)
commit5ef102cc93a4f2eba0f5dad94a7306085b353000
tree8e68b327167ff1ae24d27ff0c88cff126f806e94
parentbbb9f000ad52282ee1a0518b65437baf20c3d17c
SRFI-9: Set the `record-constructor' slot of the RTD.

Fixed <http://bugs.gnu.org/11196>.
Reported by Klaus Stehle <klaus.stehle@uni-tuebingen.de>.

* module/srfi/srfi-9.scm (define-record-type): Define the contructor
  before TYPE-NAME.  Set RTD's constructor field.

* test-suite/tests/srfi-9.test ("record compatibility"): New test
  prefix.
module/srfi/srfi-9.scm
test-suite/tests/srfi-9.test