Re: [racket-users] struct question

2018-03-07 Thread Jon Zeppieri
On Wed, Mar 7, 2018 at 9:27 PM, Kevin Forchione  wrote:

> Hi guys,
> Can we associate more than 1 generic with a struct? Something like:
>
> (struct foo (..) #:methods gen:bar [] gen:baz [] …)
>
>
>
Yes, except it's:

(struct foo (..) #:methods gen:bar [] #:methods gen:baz [] ...)

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] struct question

2018-03-07 Thread Kevin Forchione
Hi guys,
Can we associate more than 1 generic with a struct? Something like:

(struct foo (..) #:methods gen:bar [] gen:baz [] …)

Thanks,
Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.