SRFI 9 and macro for record definition

Per Bothner per@bothner.com
Thu Nov 21 11:14:00 GMT 2002


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/



More information about the Kawa mailing list