This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: SRFI 9 and macro for record definition
- From: Per Bothner <per at bothner dot com>
- To: Jocelyn Paine <popx at ifs dot org dot uk>
- Cc: kawa at sources dot redhat dot com
- Date: Thu, 21 Nov 2002 11:06:53 -0800
- Subject: Re: SRFI 9 and macro for record definition
- References: <Pine.LNX.4.21.0211211712150.4804-100000@pop3.ifs.org.uk>
Jocelyn Paine wrote:
>What I would like is to add an implementation of SRFI 9 "Defining Record
>Types" (http://srfi.schemers.org/srfi-9/srfi-9.html). This can be
>implemented on top of make-record-type fairly easily (the SRFI 9
>document provides an implementation), though it would be better to
>define it using define-class. That should not be very difficult
Per, did you or anyone else implement this?
Yes, Kawa has a decent implementation of SRFI-9 in CVS.
See http://sources.redhat.com/ml/kawa/2002-q3/msg00112.html
It most generates optimal code, with the exception of
constructors. (I'd like to fix those, but as I recall
it didn't look trivial.)
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/