This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: define-record-type
- From: Per Bothner <per at bothner dot com>
- To: Chris Dean <ctdean at mercedsystems dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 29 Jan 2003 00:17:27 -0800
- Subject: Re: define-record-type
- References: <9623.1043828339@mercedsystems.com>
Chris Dean wrote:
I'm used to using defstruct in Common Lisp. In Kawa, should I use
define-record-type, define-simple-class, or something else?
Your choice. Both are fairly efficient. The advantage of
define-record-type is that it is more portable, as it is
a "standard" SRFI.
The constructor function in define-record-type isn't
implemented using optimizal code, but you should be
able to use (make <type-name>) or something similar.
(See what class names are generated.)
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/