[prev in list] [next in list] [prev in thread] [next in thread] 

List:       racket-users
Subject:    [racket] struct-copy with sub-types
From:       olopierpa () gmail ! com (Pierpaolo Bernardi)
Date:       2011-03-25 15:33:15
Message-ID: AANLkTikubMo=8SN7Cu9FXhcztnz4_XdZOeTh1+FYoa05 () mail ! gmail ! com
[Download RAW message or body]

On Fri, Mar 25, 2011 at 16:32, Robby Findler
<robby at eecs.northwestern.edu> wrote:
>> Isn't the second case the case Robby said it still doesn't work?
>
> Oh, sorry, yes: you'd have to write this:
>
> ?(struct-copy sub (sub 1 2 3) [b #:parent base 4])
>
> or else it would be a syntax error.

OK. The examples clarified this.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic