This is typical usage in RScheme as well.
(define-class <complex> (<number>)
real-part
imag-part)
(make <complex> real-part: 0 imag-part: 1.0)
On 4/12/06, Per Bothner <xxxxxx@bothner.com> wrote:
> Marc Feeley wrote:
> > The record SRFI should not be withdrawn yet because there is a possible
> > interaction with SRFI 88 and SRFI 89 that have just appeared (i.e.
> > Keyword objects and Optional parameters). I think there are good
> > reasons to consider the use of named optional parameters and keywords in
> > the record SRFI.
>
> For example Kawa allows:
>
> (define-class Complex ()
> (re) (im))
>
> (define z (Complex im: 3 re: 4))
> --
> --Per Bothner
> xxxxxx@bothner.com http://per.bothner.com/
>
>
--
-- Donovan