[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: records

From: David Van Horn
Subject: Re: records
Date: Sun, 28 Mar 2004 13:58:13 -0500
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6b) Gecko/20031206 Thunderbird/0.4

David Van Horn wrote:
You could use a macro:

   (define-syntax define-with

Alternatively, you could use define-values as described in the FAQ. I don't know if Guile has define-values, if not, a definition is given here:


   (define-values (foo? ...)
     (let ((foo-rtd (make-record-type "foo" 'bar 'baz)))
       (define foo? (record-predicate foo-rtd))
       (values foo? ...))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]