chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN


From: John Cowan
Subject: Re: [Chicken-users] [ANN] SRFI-99 record types for CHICKEN
Date: Thu, 8 Sep 2011 01:47:26 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

Thomas Chust scripsit:

> that's strange, I can't reproduce the problem here, everything looks
> fine in this respect (note that rtd-constructor is *supposed* to
> return a constructor procedure, not an instance, according to
> specification):

Ah.  I forgot to say I was talking about the syntactic module.
Try (make-record-type foo (make-foo a b) foo? (a foo-a) (b foo-b)),
and then invoke (make-foo 1 2).

> You can always do that by explicitly specifying the uid, for example
> like this:
> 
>   (define-record-type (foo #f #:uid 'foo) #t #t x y z)

Ah, I didn't know that worked.  It's not part of SRFI-99, but it's a good
extension.

> I'm not sure this warrants a specialized macro.

I agree.

> Sounds like a really good idea! The implementation will have to
> wait for a few days, though, while I'm out of hacking mode and on a
> bike tour :-)

Sure.

-- 
I now introduce Professor Smullyan,             John Cowan
who will prove to you that either               address@hidden
he doesn't exist or you don't exist,            http://www.ccil.org/~cowan
but you won't know which.                               --Melvin Fitting



reply via email to

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